summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/jump.C
blob: d720a9288539a0a860e700287767500739c9eaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// PRMS Id: 6036

extern int a;

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