blob: 8778582168be5492c6fa788b791f5b862820d390 [file] [log] [blame]
// { dg-options "-Wextra-semi -fdiagnostics-show-caret" }
struct A
{
A() {}; /* { dg-warning "after in-class function definition" }
{ dg-begin-multiline-output "" }
A() {};
^
-
{ dg-end-multiline-output "" } */
void foo() {}; /* { dg-warning "after in-class function definition" }
{ dg-begin-multiline-output "" }
void foo() {};
^
-
{ dg-end-multiline-output "" } */
friend void bar() {}; /* { dg-warning "after in-class function definition" }
{ dg-begin-multiline-output "" }
friend void bar() {};
^
-
{ dg-end-multiline-output "" } */
};