Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/always_inline-5.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 } struct f { inline f(void); inline void f1(void); int a; }; inline __attribute__((always_inline)) f::f(void) { a++; } inline __attribute__((always_inline)) void f::f1(void) { a++; } void g(void) { f a, b, c, d; a.f1(); } // f::f() should be inlined even at -O0 // { dg-final { scan-assembler-not "_ZN1fC1Ev" } } // Likewise for f::f1() // { dg-final { scan-assembler-not "_ZN1f2f1Ev" } }