blob: 4b0572a61716df27c1f4291e62f0915a0ecbeccf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// { 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 ();
}
|