Home | History | Annotate | Download | only in CodeGen
      1 // Make sure -fno-inline-functions is behaving correctly.
      2 // rdar://10972766
      3 
      4 // RUN: %clang_cc1 -O3 -fno-inline -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s
      5 
      6 inline int dont_inline_me(int a, int b) { return(a+b); }
      7 
      8 volatile int *pa = (int*) 0x1000;
      9 void foo() {
     10 // NOINLINE: @foo
     11 // NOINLINE: dont_inline_me
     12 // NOINLINE-NOT: inlinehint
     13     pa[0] = dont_inline_me(pa[1],pa[2]);
     14 }
     15