Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-virtual5.C
blob: 5f9ab4d9c288ffa08390e06ace4ebbbfdf793d37 [
file
] [
log
] [
blame
]
// PR c+++/67592
// { dg-do compile { target c++11 } }
struct
S
{
constexpr
virtual
int
f
()
{
return
1
;
}
// { dg-error "13:member .f. can be declared both .virtual. and .constexpr." "" { target c++17_down } }
};