repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
strub: enable conditional support
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
PR58294.C
blob
e1fb95ae23dc49f4361fa9a6e8c536da1f2b38b7
1
// { dg-do compile }
2
struct A {
3
virtual ~A();
4
virtual void m_fn1() { delete this; }
5
void m_fn2() { m_fn1(); }
6
};
7
8
struct B {
9
A *pi_;
10
B() { pi_->m_fn2(); }
11
};
12
struct C {
13
B pn;
14
};
15
void _setjmp();
16
int png_decode() {
17
_setjmp();
18
C a;
19
return 0;
20
}