Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr45453.C
blob4b7b1d6f489c4d6a900147d81c87a21119c029a5
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fno-devirtualize-speculatively" } */
3 struct S
5   S();
6   virtual inline void foo ()
7   {
8     foo();
9   }
12 void
13 B ()
15   S().foo ();
17 /* We should inline foo and devirtualize call to foo in the inlined version.  */
18 // { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 1 "optimized" } }