Chad Rosier | 250008b | 2012-03-06 18:49:20 +0000 | [diff] [blame^] | 1 | // Make sure -fno-inline is behaving correctly. |
2 | // rdar://10972766 | ||||
3 | |||||
4 | // RUN: %clang_cc1 -O3 -fno-inline -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s | ||||
5 | |||||
6 | 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 | pa[0] = dont_inline_me(pa[1],pa[2]); | ||||
13 | } | ||||
14 |