1 // { dg-do compile { target c++11 } }
2 // { dg-options "-Wunused -Wextra" }
3 
f()4 [[maybe_unused]] static void f() { }
5 
6 enum [[maybe_unused]] E {
7   e [[maybe_unused]]
8 };
9 
10 struct [[maybe_unused]] A {
11   [[maybe_unused]] static int i;
12 };
13 
g(int i)14 void g([[maybe_unused]] int i) {
15   [[maybe_unused]] typedef int T;
16   [[maybe_unused]] int j;
17 }
18