Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / other / final4.C
blob867ef3830e717a0cbbea59d6f2d40dca36913002
1 // PR c++/67184
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fdump-tree-original"  }
5 struct B
7   virtual void operator()();
8   virtual operator int();
9   virtual int operator++();
12 struct D final : B { };
14 void foo(D& d) { d(); int t = d; ++d; }
16 // { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 0 "original" } }