Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/opt/declone3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/79176 |
2 // { dg-do compile { target c++11 } } | |
3 // { dg-require-effective-target lto } | |
4 // { dg-options "-flto -Os" } | |
5 | |
6 struct A {}; | |
7 struct Object { | |
8 virtual bool m_fn1(); | |
9 virtual ~Object(); | |
10 }; | |
11 struct Item : Object, virtual A { | |
12 ~Item() { | |
13 [] {}; | |
14 } | |
15 bool m_fn1(); | |
16 }; | |
131 | 17 bool Item::m_fn1() { return true; } |