Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/debug/pr47106.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-O -fpartial-inlining -flto -fconserve-stack -fcompare-debug" } // { dg-require-effective-target lto } // { dg-xfail-if "" { powerpc-ibm-aix* } } void end (int, int) __attribute__ ((__noreturn__)); struct S { int i; S *s; }; inline bool f (S *s) { if (!s->s) end (0, 0); return s->s == s; } inline bool baz (S s1, S) { while (f (&s1)); return true; } inline bool bar (S s1, S s2, S) { return baz (s1, s2); } S getS (); bool foo () { return bar (getS (), getS (), getS ()); }