mirror of
https://github.com/golang/go
synced 2024-11-06 01:46:12 -07:00
11016f62d8
Fixes #7757. Fixes #8488. LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/118690044
15 lines
252 B
Go
15 lines
252 B
Go
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
/*
|
|
void foo() {}
|
|
*/
|
|
import "C"
|
|
|
|
func main() {
|
|
C.foo = C.foo // ERROR HERE
|
|
}
|