Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.go-torture / execute / for-2.go
blobaf790edf80cc49429e4347ccd23745690fb2dc3f
1 package main
3 func f1() {
4 j := 0;
5 for i := 0; i < 10; i++ {
6 if i > 2 {
7 break;
9 j = i;
11 if (j != 2) {
12 panic(0);
16 func f2() {
17 for i := 0; i < 10; i++ {
18 if i >= 0 {
19 continue;
21 panic(1);
25 func f3() {
26 lab1:
27 for i := 0; i < 10; i++ {
28 for j := 0; j < 10; j++ {
29 if j > 2 {
30 break lab1;
33 panic(2);
37 func f4() {
38 lab1:
39 for i := 0; i < 10; i++ {
40 for j := 0; j < 10; j++ {
41 continue lab1;
43 panic(3);
47 func main() {
48 f1();
49 f2();
50 f3();
51 f4()