summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.go/strings.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.go/strings.go')
-rw-r--r--gdb/testsuite/gdb.go/strings.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.go/strings.go b/gdb/testsuite/gdb.go/strings.go
new file mode 100644
index 00000000000..fc62e396427
--- /dev/null
+++ b/gdb/testsuite/gdb.go/strings.go
@@ -0,0 +1,10 @@
+package main
+
+import "fmt"
+
+var v_string string = "foo"
+
+func main () {
+ fmt.Println ("hello") // set breakpoint 1 here
+ fmt.Printf ("%s\n", v_string)
+}