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