Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-virtual4.C
blob: b938d6535c781995c43b87452b2de16d44558051 [
file
] [
log
] [
blame
]
// PR c++/56291
// { dg-do compile { target c++11 } }
class
Base
{
public
:
constexpr
Base
()
:
v
(
1
)
{};
int
v
;
};
class
Derived
:
public
Base
{
public
:
constexpr
Derived
()
:
Base
()
{};
virtual
void
function
();
};
Derived
d
;