Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/final4.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
145 | 1 // PR c++/67184 |
2 // { dg-do compile { target c++11 } } | |
3 // { dg-options "-fdump-tree-original" } | |
4 | |
5 struct B | |
6 { | |
7 virtual void operator()(); | |
8 virtual operator int(); | |
9 virtual int operator++(); | |
10 }; | |
11 | |
12 struct D final : B { }; | |
13 | |
14 void foo(D& d) { d(); int t = d; ++d; } | |
15 | |
16 // { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 0 "original" } } |