2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / bool3.C
blob4e31003ce964db798839ad7e5d59e1678ccb6df5
1 // { dg-do assemble  }
2 // From: panisset@cae.ca (Jean-Francois Panisset)
3 // Subject: Problem with constant expressions for bitfields
4 // Date: Mon, 6 Jun 94 14:00:01 EDT
6 // Bug: g++ doesn't treat boolean true and false as constant values.
8 enum E { e1,e2,e3,e4,e5 };
10 struct X
12         unsigned int bits : ((e5 > 4) ? 8 : 4); // { dg-bogus "" } constant expression