OpenCores
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++.jason/] [enum7.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// Yet Another testcase for signed/unsigned enums.
3
 
4
enum A { AA = 0, AB = 1};
5
enum B { BA = -1, BB = 1};
6
 
7
void set(int a);
8
void set(long a);
9
 
10
void
11
foo()
12
{
13
        set(AA);        // { dg-bogus "" } why is this ambiguous
14
        set(BA);        // when this is not amibguous
15
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.