summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/enum1.C
blob: 40dc5faf66da5415b961ed7a8e64cda129783cbf (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do run }

extern "C" void abort();
int main()
{
    enum { shelf = 4 } t = shelf;
    if (!(t & shelf))
	abort ();
}