Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/scoped_enum9.C

raw
1 // DR 685 - Integral promotion of enumeration ignores fixed underlying type.
2 // { dg-do compile { target c++11 } }
3
4 enum E: long { e };
5
6 void f(int);
7 int f(long);
8
9 void g() {
10 int k = f(e);
11 }