aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/enum5.C
blob: 32134eff85cbffaffd8750b565601d3874efccd6 (plain)
1
2
3
4
5
6
7
8
9
10
// Build don't link: 
// Special g++ Options: -pedantic-errors
// GROUPS passed enums
enum Thing { FIRST, SECOND } ;

int main()
{
    Thing x = FIRST ;
    x = 27 ;          // this line should be a type error.// ERROR - .*
}