Add single-lane SLP support to .GOMP_SIMD_LANE vectorization
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / devirt-30.C
blob630fb8aef6dccb807e3cdf47c97fd8e8aac8ef39
1 // PR c++/58678
2 // { dg-do compile }
3 // { dg-options "-O3 -fdump-ipa-devirt" }
5 // We shouldn't speculatively devirtualize to ~B because B is an abstract
6 // class; any actual object passed to f will be of some derived class which
7 // has its own destructor.
9 struct A
11   virtual void f() = 0;
12   virtual ~A();
15 struct B : A
17   virtual ~B() {}
20 void f(B* b)
22   delete b;
25 // { dg-final { scan-ipa-dump-not "Speculatively devirtualizing" "devirt" } }