diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-03-06 18:49:20 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-03-06 18:49:20 +0000 |
commit | 806031896de5882245afaab95e056ff9c54ec7ef (patch) | |
tree | 8052608c107c810474f6357805c5ac69da9de0bf /clang/test/CodeGen/noinline.c | |
parent | 579e701fd93d31db44b3b1ee70e8926fdf927654 (diff) | |
download | bcm5719-llvm-806031896de5882245afaab95e056ff9c54ec7ef.tar.gz bcm5719-llvm-806031896de5882245afaab95e056ff9c54ec7ef.zip |
[driver] Add support for -fno-inline.
rdar://10972766
llvm-svn: 152130
Diffstat (limited to 'clang/test/CodeGen/noinline.c')
-rw-r--r-- | clang/test/CodeGen/noinline.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGen/noinline.c b/clang/test/CodeGen/noinline.c new file mode 100644 index 00000000000..18d34e1600d --- /dev/null +++ b/clang/test/CodeGen/noinline.c @@ -0,0 +1,14 @@ +// Make sure -fno-inline is behaving correctly. +// rdar://10972766 + +// RUN: %clang_cc1 -O3 -fno-inline -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s + +int dont_inline_me(int a, int b) { return(a+b); } + +volatile int *pa = (int*) 0x1000; +void foo() { +// NOINLINE: @foo +// NOINLINE: dont_inline_me + pa[0] = dont_inline_me(pa[1],pa[2]); +} + |