Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
new-array3.C
blob: f35124e159dd8ac7561849dc7a5546b93752deac [
file
] [
log
] [
blame
]
// PR c++/93529
// P1009: Array size deduction in new-expressions
// { dg-do compile { target c++11 } }
template
<
typename
...
T
>
int
*
fn
(
T
...
t
)
{
return
new
int
[]{
t
...};
}
int
main
()
{
int
*
p0
=
fn
();
int
*
p1
=
fn
(
1
);
int
*
p3
=
fn
(
1
,
2
,
3
);
}