Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr51463.C

raw
1 // PR c++/51463
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 static virtual int i = 0; // { dg-error "10:member .i. cannot be declared both .virtual. and .static." }
7 // { dg-error "declared as" "" { target *-*-* } .-1 }
8 };