Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / pr59355.C
blob907c6d74501b609cb512ce3365e55be963ca7a8e
1 // PR tree-optimization/59355
2 // { dg-do compile }
3 // { dg-options "-O2 -fno-devirtualize" }
5 struct S
7   virtual void bar ();
8 };
10 void
11 foo (S *s)
13   s->bar ();