1 // PR c++/28387 2 // { dg-do compile { target c++11 } } 3 4 enum [[gnu::unused]] E; // { dg-error "without previous declaration" } 5