summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/scoped_enum9.C
blob: f38f26dc35b07bd95b2e5fdc5a6c5a2dc92165d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// DR 685 - Integral promotion of enumeration ignores fixed underlying type.
// { dg-do compile { target c++11 } }

enum E: long { e };

void f(int);
int f(long);

void g() {
  int k = f(e);
}