aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/enum8.C
blob: 83dd6e0e18f580e03858f02ed83f77e8497a3c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/16603

char const c = 'q';

enum
  {
    x = c,
    y = sizeof(x)
  };

int test[y == sizeof(char) ? 1 : -1];