aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/jump.C
blob: 754e7006c3694df2aa53e7bb0311320b619320d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PRMS Id: 6036

extern int a;

main() {
  switch (a) {
  case 1:
    int v2 = 3;			// ERROR - referenced below
  case 2:			// ERROR - jumping past initializer
    if (v2 == 7)
      ;
  }
  return 0;
}