Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/inline-39.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27) |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */ /* { dg-add-options bind_pic_locally } */ int g; __attribute__((always_inline)) void bar (void) { g++; } int foo (void) { bar (); return g; } int foo2 (void) { bar(); return g + 1; } /* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */