Skip to content

Commit 567ee86

Browse files
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 24e9707 commit 567ee86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/testdata/script/cgo_lto_issue43830.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ go build main.go add.go
1515
package main
1616

1717
/*
18+
extern int myadd(int, int);
1819
int c_add(int a, int b) {
1920
return myadd(a, b);
2021
}

0 commit comments

Comments
 (0)