Debian Codegraph @

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

raw
1 // PR c++/82307
2 // { dg-do run { target c++11 } }
3 // { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
4
5 #include <cassert>
6
7 enum : short { VAL };
8
9 bool foo (int) { return true; }
10 bool foo (unsigned long long) { return false; }
11
12 int main()
13 {
14 assert (foo (VAL));
15 }