repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gcn] mkoffload.cc: Print fatal error if -march has no multilib but generic has
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
dwarf2
/
local-var-in-contructor.C
blob
fafff62eab6e867a94035c8a9fa25d38e806304c
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
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