3 // { dg-options "-Wunused-but-set-variable" }
6 #if __cplusplus >= 201103L
7 enum class E : int { F = 0, G = 1 };
14 float r = 1.0f; // { dg-bogus "set but not used" }
15 int i = 2; // { dg-bogus "set but not used" }
16 #if __cplusplus >= 201103L
17 decltype(nullptr) n = nullptr; // { dg-bogus "set but not used" }
18 E e = E::F; // { dg-bogus "set but not used" }
23 S s = { 3 }; // { dg-bogus "set but not used" }
24 bar (0, r, i, n, e, s);