blob: eb8b51e8c04790cc4b8ed6b19de52970c3d61163 [file] [log] [blame]
// { dg-do compile { target c++11 } }
// { dg-options "-Wunused -Wextra" }
[[maybe_unused]] static void f() { }
enum [[maybe_unused]] E {
e [[maybe_unused]]
};
struct [[maybe_unused]] A {
[[maybe_unused]] static int i;
};
void g([[maybe_unused]] int i) {
[[maybe_unused]] typedef int T;
[[maybe_unused]] int j;
}