1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 #include "_cgo_export.h"
12 // use some stack space
13 volatile char data[64*1024];
17 data[sizeof(data)-1] = 0;
23 extern void goFoo(void);
40 callGoStackCheck(void)
42 extern void goStackCheck(void);
49 extern int goReturnVal(void);
55 returnAfterGrowFromGo(void)
57 extern int goReturnVal(void);
62 callGoWithString(void)
64 extern void goWithString(GoString);
65 const char *str = "string passed from C to Go";
66 goWithString((GoString){str, strlen(str)});