Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist18.C
blob: bcf90c83a0cec87d604304b472ed1fa36d3b14a9 [
file
] [
log
] [
blame
]
// PR c++/40308, 40311
// { dg-do run { target c++11 } }
template
<
typename
T
>
struct
test
{
test
()
:
data
{}
{}
T data
;
};
int
main
()
{
test
<int>
x
;
test
<
int
*>
y
;
int
*
a
=
new
int
{};
int
*
b
=
new
int
{
5
};
return
0
;
}