Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/ipa/iinline-cstagg-1.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 "-O3 -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-sra -fno-ipa-cp" } */ typedef struct S { int add_offset; int (*call)(int); } S; static int bar (const S *f, int x) { x = f->call(x); return x; } static int thisisthetarget (int x) { return x * x; } static const S s = {16, thisisthetarget}; int outerfunction (int x) { return bar (&s, x); } int obfuscate (int x) { return bar ((S *) 0, x); } /* { dg-final { scan-ipa-dump "thisisthetarget\[^\\n\]*inline copy in outerfunction" "inline" } } */