Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr80205.C
blob460bdcb02ca5c515c546a517e83086065254cd70
1 // PR ipa/80205
2 // { dg-options "-fnon-call-exceptions --param early-inlining-insns=100 -O2" }
4 class a
6 public:
7   virtual ~a ();
8 };
9 class b
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;
28 void
29 h ()
31   b i = int();
32   void j ();
33   i = j;