1 2 3 4 5 6 7 8 9 10
// { dg-options "-pedantic" } class foo { foo() {}; void bar() {}; foo(int) {};; // { dg-warning "extra" } void bar(int) {};; // { dg-warning "extra" } };