Chad Rosier | 634a4b1 | 2012-03-06 21:17:19 +0000 | [diff] [blame^] | 1 | // Make sure -fno-inline-functions is behaving correctly. |
Chad Rosier | 250008b | 2012-03-06 18:49:20 +0000 | [diff] [blame] | 2 | // rdar://10972766 |
| 3 | |
Chad Rosier | 634a4b1 | 2012-03-06 21:17:19 +0000 | [diff] [blame^] | 4 | // RUN: %clang_cc1 -O3 -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s |
Chad Rosier | 250008b | 2012-03-06 18:49:20 +0000 | [diff] [blame] | 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 | } |