]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add declaration to cgo_lto_issue43830 test
authorIan Lance Taylor <iant@golang.org>
Tue, 1 Jun 2021 20:47:42 +0000 (13:47 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 1 Jun 2021 21:14:02 +0000 (21:14 +0000)
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>

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

index 06ab2f34c9de2c1fc5587bbe301a96cc4ad4b897..8bc7d8a540ffc7408eb53591cea5a3cacbf10cde 100644 (file)
@@ -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);
 }