Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
new5.C
blob: b5a9ca282b5fcc2dfbd05f206701bdf23de02861 [
file
] [
log
] [
blame
]
// PR c++/99705
// { dg-do compile { target c++11 } }
template
<
typename
T
>
struct
C
{
C
()
{
f
();
}
~
C
()
{}
static
void
f
()
{}
};
struct
X
{
X
();
int
n
=
10
;
C
<int>
*
p
=
new
C
<int>
[
n
];
};
X
::
X
()
{
}