repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
enum7.C
blob
38720efbaa19a41cdc51539598c0598b647445fd
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
}