aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/inline-22.c
blob: 1785e1ce6d5f49b6f3e3e5a452eaa9ae887d9467 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-funit-at-a-time -Wno-attributes" } */
/* Verify we can inline without a complete prototype and with promoted
   arguments.  See also PR32492.  */
__attribute__((always_inline)) void f1() {}
__attribute__((always_inline)) void f2(char x) {}
void f3() { f1(); f2(0); }