summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/switch1.C
blob: b0b06b748f862dd5adadeec7113911062ef455df (plain)
1
2
3
4
5
6
7
8
int f(int c)
{
  switch (c)
  {
    case d: /* { dg-error "'d' was not declared" } */
     int optBzip2 = true;
  }
}