diff options
Diffstat (limited to 'cgo/testdata/symbols.go')
-rw-r--r-- | cgo/testdata/symbols.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cgo/testdata/symbols.go b/cgo/testdata/symbols.go index fb585c2f8..c8029a148 100644 --- a/cgo/testdata/symbols.go +++ b/cgo/testdata/symbols.go @@ -9,6 +9,10 @@ static void staticfunc(int x); // Global variable signatures. extern int someValue; + +void notEscapingFunction(int *a); + +#cgo noescape notEscapingFunction */ import "C" @@ -18,6 +22,7 @@ func accessFunctions() { C.variadic0() C.variadic2(3, 5) C.staticfunc(3) + C.notEscapingFunction(nil) } func accessGlobals() { |