aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/enum3.C
blob: f401613df3a9f595a346930679b8d99049c6bd23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Origin: Mark Mitchell <mark@codesourcery.com>
// Special g++ Options: -fshort-enums

enum E { 
  a = -312
};

E e = a;

int main () {
  if ((int) e != -312)
    return 1;
}