aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/enum7.C
blob: 0f683047aec49820ff11d84c3e07dfded724ab1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Yet Another testcase for signed/unsigned enums.
// Build don't link:

enum A { AA = 0, AB = 1};
enum B { BA = -1, BB = 1};

void set(int a);
void set(long a);

void
foo()
{
	set(AA);	// gets bogus error - why is this ambiguous
	set(BA);	// when this is not amibguous
}