Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wunused-var30.C

raw
1 // PR c++/83942
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-Wall" }
4
5 enum class E { E1 };
6 int main() {
7 E const e = E::E1;
8 return static_cast<int>(e);
9 }