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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ipa
/
pr80205.C
blob
460bdcb02ca5c515c546a517e83086065254cd70
1
// PR ipa/80205
2
// { dg-options "-fnon-call-exceptions --param early-inlining-insns=100 -O2" }
3
4
class a
5
{
6
public:
7
virtual ~a ();
8
};
9
class b
10
{
11
public:
12
template <typename c> b (c);
13
~b () { delete d; }
14
void
15
operator= (b e)
16
{
17
b (e).f (*this);
18
}
19
void
20
f (b &e)
21
{
22
a g;
23
d = e.d;
24
e.d = &g;
25
}
26
a *d;
27
};
28
void
29
h ()
30
{
31
b i = int();
32
void j ();
33
i = j;
34
}