URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [bool3.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// From: panisset@cae.ca (Jean-Francois Panisset)
// Subject: Problem with constant expressions for bitfields
// Date: Mon, 6 Jun 94 14:00:01 EDT
// Bug: g++ doesn't treat boolean true and false as constant values.
enum E { e1,e2,e3,e4,e5 };
struct X
{
unsigned int bits : ((e5 > 4) ? 8 : 4); // { dg-bogus "" } constant expression
};
Go to most recent revision | Compare with Previous | Blame | View Log