comparison gcc/testsuite/g++.dg/cpp0x/pr51463.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // PR c++/51463 1 // PR c++/51463
2 // { dg-do compile { target c++11 } } 2 // { dg-do compile { target c++11 } }
3 3
4 struct A 4 struct A
5 { 5 {
6 static virtual int i = 0; // { dg-error "both 'virtual' and 'static'|declared as" } 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 }
7 }; 8 };