summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go
diff options
context:
space:
mode:
authorRyan Brown <ribrdb@google.com>2015-11-02 21:28:18 +0000
committerRyan Brown <ribrdb@google.com>2015-11-02 21:28:18 +0000
commitf6660e24d75a94fbc421bbd58806bd66b14cd2f9 (patch)
tree7532da097f273f16e51fbe0dccc23ee4eb7ac38c /lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go
parentbfbfb12d3880af44ca6a14839dbc6307750f8f29 (diff)
downloadbcm5719-llvm-f6660e24d75a94fbc421bbd58806bd66b14cd2f9.tar.gz
bcm5719-llvm-f6660e24d75a94fbc421bbd58806bd66b14cd2f9.zip
Move go expression tests to the new location.
llvm-svn: 251835
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go b/lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go
new file mode 100644
index 00000000000..c8b97fe07d7
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/lang/go/expressions/main.go
@@ -0,0 +1,21 @@
+package main
+
+import "fmt"
+
+type myStruct struct {
+ a, b int
+}
+
+var myGlobal = 17
+
+func myFunc(i interface{}) {
+ a := [...]int{8, 9, 10}
+ b := a[:]
+ x := 22
+ fmt.Println(a, b, x, i, myGlobal) // Set breakpoint here.
+}
+
+func main() {
+ s := myStruct {2, -1}
+ myFunc(s)
+} \ No newline at end of file
OpenPOWER on IntegriCloud