URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Yet Another testcase for signed/unsigned enums.
|
// Yet Another testcase for signed/unsigned enums.
|
|
|
enum A { AA = 0, AB = 1};
|
enum A { AA = 0, AB = 1};
|
enum B { BA = -1, BB = 1};
|
enum B { BA = -1, BB = 1};
|
|
|
void set(int a);
|
void set(int a);
|
void set(long a);
|
void set(long a);
|
|
|
void
|
void
|
foo()
|
foo()
|
{
|
{
|
set(AA); // { dg-bogus "" } why is this ambiguous
|
set(AA); // { dg-bogus "" } why is this ambiguous
|
set(BA); // when this is not amibguous
|
set(BA); // when this is not amibguous
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.