1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-fre1" } */
3 extern "C" void abort();
4 bool destructor_called = false;
14 ~O() { destructor_called = true; };
19 #if __cplusplus <= 201402L
20 throw( int ) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
30 static_cast<B&>(d).Run();
33 if (!destructor_called)
39 /* We should devirtualize call to D::Run */
40 /* { dg-final { scan-tree-dump-times "D::Run \\(" 3 "fre1" } } */