diff options
Diffstat (limited to 'cgo/testdata/errors.go')
-rw-r--r-- | cgo/testdata/errors.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cgo/testdata/errors.go b/cgo/testdata/errors.go index 75828ce0f..8813f83cf 100644 --- a/cgo/testdata/errors.go +++ b/cgo/testdata/errors.go @@ -10,6 +10,11 @@ typedef struct { typedef someType noType; // undefined type +// Some invalid noescape lines +#cgo noescape +#cgo noescape foo bar +#cgo noescape unusedFunction + #define SOME_CONST_1 5) // invalid const syntax #define SOME_CONST_2 6) // const not used (so no error) #define SOME_CONST_3 1234 // const too large for byte |