Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / opt / pr20991.C
blob32b3d05c351b711d43daf18cc505bd6de3736c1f
1 // PR middle-end/20991
2 // { dg-options "-O2" }
3 // { dg-do compile }
5 struct S
7   virtual inline int foo () const;
8   virtual inline bool bar () const;
9   virtual int baz (int) const;
12 inline int S::foo () const
14   return 1;
17 inline bool S::bar () const
19   return foo () == 0;
22 void A ()
24   S s;
25   if (s.bar ())
26     s.foo ();
29 void B ()
31   S s;
32   if (s.bar ())
33     s.foo ();