1 // Make sure -fno-inline-functions is behaving correctly.
3 // RUN: %clang_cc1 -O3 -fno-inline -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s
5 inline int dont_inline_me(int a
, int b
) { return(a
+b
); }
7 inline __attribute__ ((__always_inline__
)) int inline_me(int a
, int b
) { return(a
*b
); }
9 volatile int *pa
= (int*) 0x1000;
12 // NOINLINE: dont_inline_me
13 // NOINLINE-NOT: inlinehint
14 pa
[0] = dont_inline_me(pa
[1],pa
[2]);
15 // NOINLINE-NOT: inline_me
16 pa
[3] = inline_me(pa
[4],pa
[5]);
19 // NOINLINE: Function Attrs: noinline
20 // NOINLINE: @dont_inline_me