Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;