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