whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,17 @@
package main
// #cgo CFLAGS: -g -Wall -O0
/*
void sigsegv(int x) {
int *p = NULL;
*p = x;
}
void testfn(int x) {
sigsegv(x);
}
*/
import "C"
func main() {
C.testfn(C.int(10))
}