Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
2 // Origin PR27574
3 // { dg-do compile }
4 // { dg-options "-O0 -gdwarf-2" }
5 // { dg-final { scan-assembler "problem" } }
6
7 void f (int *)
8 {
9 }
10
11 class A
12 {
13 public:
14 A(int i);
15 };
16
17 A::A(int i)
18 {
19 int *problem = new int(i);
20 f (problem);
21 }
22
23 int
24 main (void)
25 {
26 A a (0);
27
28 return 0;
29 }
30