Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-new3.C
blob: 04a8f5c21df569edc3bd34479da2a038d240815b [
file
] [
log
] [
blame
]
// PR c++/93173
// { dg-do compile { target c++11 } }
template
<typename>
struct
S1
{
S1
(
S1
&);
~
S1
();
};
struct
S2
{
S1
<void>
x
;
int
y
;
int
z
;
};
void
f
(
S1
<void>
x
,
int
y
,
int
z
)
{
new
S2
{
x
,
y
,
z
};
}