From: Ian Lance Taylor Date: Tue, 1 Jun 2021 20:47:42 +0000 (-0700) Subject: cmd/go: add declaration to cgo_lto_issue43830 test X-Git-Tag: go1.17beta1~57 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=567ee865f690cde59d5aeadc04bcc926d2316db8;p=gostls13.git 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 Run-TryBot: Ian Lance Taylor Reviewed-by: Cherry Mui TryBot-Result: Go Bot --- diff --git a/src/cmd/go/testdata/script/cgo_lto_issue43830.txt b/src/cmd/go/testdata/script/cgo_lto_issue43830.txt index 06ab2f34c9..8bc7d8a540 100644 --- a/src/cmd/go/testdata/script/cgo_lto_issue43830.txt +++ b/src/cmd/go/testdata/script/cgo_lto_issue43830.txt @@ -15,6 +15,7 @@ go build main.go add.go package main /* +extern int myadd(int, int); int c_add(int a, int b) { return myadd(a, b); }