Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/torture/pr48954.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -flto -fno-early-inlining -fkeep-inline-functions" } */ /* { dg-require-effective-target lto } */ struct A { virtual void foo () = 0; }; struct B : A {}; struct C : A {}; struct D: C, B { void foo () {} }; static inline void bar (B *b) { b->foo (); } int main () { D d; for (;;) bar (&d); }