URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [enum7.C] - Rev 716
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Yet Another testcase for signed/unsigned enums.
enum A { AA = 0, AB = 1};
enum B { BA = -1, BB = 1};
void set(int a);
void set(long a);
void
foo()
{
set(AA); // { dg-bogus "" } why is this ambiguous
set(BA); // when this is not amibguous
}
Go to most recent revision | Compare with Previous | Blame | View Log