1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// Build don't link: // Origin: Mark Mitchell <mark@codesourcery.com> // Special g++ Options: -Wunused struct S { S (); ~S (); }; void f () { { S s1; int j; // WARNING - unused t: // WARNING - unused S s2; } }