aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/go.go-torture/execute/struct-2.go
blob: cc01f6b9c65c088a4056b0cac32a5e66a7bbee61 (plain)
1
2
3
4
5
6
7
package main

func main() {
  type s struct { x int; y int; };
  var ret s = s{1, 2};
  if ret.y - (ret.x + ret.x) != 0 { panic(0) }
}