diff options
Diffstat (limited to 'misc/cgo/testcshared/testdata/go2c2go/m1/c.c')
-rw-r--r-- | misc/cgo/testcshared/testdata/go2c2go/m1/c.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/cgo/testcshared/testdata/go2c2go/m1/c.c b/misc/cgo/testcshared/testdata/go2c2go/m1/c.c new file mode 100644 index 0000000..0e8fac4 --- /dev/null +++ b/misc/cgo/testcshared/testdata/go2c2go/m1/c.c @@ -0,0 +1,9 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "libtestgo2c2go.h" + +int CFunc(void) { + return (GoFunc() << 8) + 2; +} |