URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [enum19.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// We shouldn't give an ABI warning about promotion in switch.
// { dg-options "-std=c++0x -fabi-version=5 -Wabi" }
enum class Foo { X };
void test(Foo val)
{
switch(val)
{
case Foo::X:
break;
}
};
Go to most recent revision | Compare with Previous | Blame | View Log