diff options
Diffstat (limited to 'gdb/testsuite/gdb.go/unsafe.go')
-rw-r--r-- | gdb/testsuite/gdb.go/unsafe.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.go/unsafe.go b/gdb/testsuite/gdb.go/unsafe.go new file mode 100644 index 0000000..95318bd --- /dev/null +++ b/gdb/testsuite/gdb.go/unsafe.go @@ -0,0 +1,11 @@ +package main + +import ("fmt" + "unsafe") + +var mystring = "Shall we?" + +func main () { + fmt.Printf ("%d\n", unsafe.Sizeof (42)) // set breakpoint 1 here + fmt.Printf ("%d\n", unsafe.Sizeof (mystring)) +} |