Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-base5.C
blob: 84700bccff76fe3fe5abafb2c5b2ef51336cc127 [
file
] [
log
] [
blame
]
// PR c++/80829
// { dg-do compile { target c++11 } }
struct
A
{
constexpr
A
(
int
a
)
:
_a
(
a
)
{}
int
_a
;
};
struct
B
:
public
A
{
constexpr
B
(
int
a
)
:
A
(
a
)
{}
};
int
main
()
{
constexpr
A a
=
B
(
10
);
}