aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-1.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-1.go')
-rw-r--r--gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-1.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-1.go b/gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-1.go
new file mode 100644
index 000000000..edf38b2bf
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-1.go
@@ -0,0 +1,8 @@
+package main
+
+func main() {
+ type s struct { x int; };
+ var ret s;
+ ret.x = 1;
+ if ret.x != 1 { panic(0) }
+}