mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go: add declaration to cgo_lto_issue43830 test
This permits the test to work in C99 mode. For #43830 Change-Id: Ide54bd62239cfe602e2664300f04e472df5daf43 Reviewed-on: https://go-review.googlesource.com/c/go/+/324009 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
24e9707cbf
commit
567ee865f6
1 changed files with 1 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ go build main.go add.go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
extern int myadd(int, int);
|
||||||
int c_add(int a, int b) {
|
int c_add(int a, int b) {
|
||||||
return myadd(a, b);
|
return myadd(a, b);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue