Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr47632.C
blob: 4b0572a61716df27c1f4291e62f0915a0ecbeccf [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O -fnon-call-exceptions -ftrapv" }
template
<
typename
>
struct
S
{
int
n
;
void
bar
()
{
int
*
i
=
new
int
[
n
];
}
};
void
foo
(
S
<
char
>*
s
)
{
s
->
bar
();
}