summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/enum9.C
blob: 10e510bcd259aeb1f05863ce8f80e0a2a5d87859 (plain)
1
2
3
4
5
// { dg-options -std=c++0x }

enum class E { };
E f();
bool b2 = static_cast<bool>(f());