2 /* { dg-options "-std=c++11 -O3 -fdump-ipa-cp" } */
3 /* { dg-additional-options "-fPIC" { target fpic } } */
11 EmptyClass::EmptyClass() {
14 class CompositeClass {
17 virtual ~CompositeClass() {}
27 static bool staticBoolFunc(CompositeClass * ptr) {
28 std::unique_ptr<CompositeClass> up(ptr);
34 int main(int, char **) {
35 staticBoolFunc(new CompositeClass);
39 /* { dg-final { scan-ipa-dump "Speculative outer type:struct CompositeClass" "cp" } } */