summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.bob/case1.C
blob: 6fe4f25e30f0315ecc6767574ff306744c764e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// prms-id: 9028
class Foo;

int main()
{
  int i=0;
  switch (i) 
    {
    case ((Foo *)0): // { dg-error "" } 
    case ((Foo *)1): // { dg-error "" } 
      break;
    }
}