summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C
blob: d61d27fe7e4aaaaa10a1f6102c5c24736894f1c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin PR27574
// { dg-do compile }
// { dg-options "-O0 -g" }
// { dg-final { scan-assembler "problem" } }

void f (int *)
{
}

class A
{
public:
 A(int i);
};

A::A(int i)
{
 int *problem = new int(i);
 f (problem);
}

int
main (void)
{
  A a (0);

  return 0;
}