2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fdump-tree-original" }
7 virtual void operator()() final;
8 virtual operator int() final;
9 virtual int operator++() final;
14 virtual void operator()();
15 virtual operator int();
16 virtual int operator++();
19 void fooF1(F1& a) { a(); int m = a; ++a; }
20 void fooF2(F2& a) { a(); int m = a; ++a; }
22 // { dg-final { scan-tree-dump-times "F1::operator\\(\\)" 1 "original" } }
23 // { dg-final { scan-tree-dump-times "F1::operator int" 1 "original" } }
24 // { dg-final { scan-tree-dump-times "F1::operator\\+\\+" 1 "original" } }
25 // { dg-final { scan-tree-dump-times "F2::operator\\(\\)" 1 "original" } }
26 // { dg-final { scan-tree-dump-times "F2::operator int" 1 "original" } }
27 // { dg-final { scan-tree-dump-times "F2::operator\\+\\+" 1 "original" } }