Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / enum26.C
blob3883da92afffb5dd5479b159218cd997a8b6945c
1 // PR c++/54216
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-pedantic" }
5 enum {};            // { dg-warning "empty unnamed" }
7 enum class {};      // { dg-error "unnamed" }
9 enum class { x };   // { dg-error "unnamed" }