blob: bffb05e5b8116f1a7141a3706f9c220eac8b7a02 [file] [log] [blame]
// { dg-options "-fdiagnostics-show-caret" }
struct S
{
virtual static void foo(); // { dg-error "3:member .foo. cannot be declared both .virtual. and .static." }
/* { dg-begin-multiline-output "" }
virtual static void foo();
^~~~~~~ ~~~~~~
{ dg-end-multiline-output "" } */
static virtual void bar(); // { dg-error "10:member .bar. cannot be declared both .virtual. and .static." }
/* { dg-begin-multiline-output "" }
static virtual void bar();
~~~~~~ ^~~~~~~
{ dg-end-multiline-output "" } */
};