URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [enum11.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed enums
class X
{
enum
{
oneMask = 0x0000FFFF,
twoMask = 0x000F0000,
thiMask = 0xFFF00000, // { dg-error "comma at end" }
};
unsigned int foo;
public:
X (int) : foo (oneMask | twoMask ) {} // No warning
X () : foo (oneMask | twoMask | thiMask) {} // Warning
};
Go to most recent revision | Compare with Previous | Blame | View Log