Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/enum7.C

raw
1 // { 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 }