summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.go-torture/execute/pointer-1.go
blob: f6b30a1a0706d0ecb2ace5d2874e1301aa6bdbda (plain)
1
2
3
4
5
6
7
package main

func main() {
  p := new(int);
  *p = 0;
  if *p != 0 { panic(0) }
}