1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:07:57 -07: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:
Ian Lance Taylor 2021-06-01 13:47:42 -07:00
parent 24e9707cbf
commit 567ee865f6

View 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);
}