[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr60315.C
blob05575c4639c19aad96aed3c865b67c2861d5dad8
1 // PR ipa/60315
2 // { dg-do compile }
3 // { dg-options "-std=c++11" }
5 struct Base {
6     virtual int f() = 0;
7 };
9 struct Derived : public Base {
10     virtual int f() final override {
11         return 42;
12     }
15 extern Base* b;
17 int main() {
18     return (static_cast<Derived*>(b)->*(&Derived::f))();