summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/enum7.C
blob: 38720efbaa19a41cdc51539598c0598b647445fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Yet Another testcase for signed/unsigned enums.

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

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

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