diff options
Diffstat (limited to 'test/Modules/pch-used.m')
-rw-r--r-- | test/Modules/pch-used.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Modules/pch-used.m b/test/Modules/pch-used.m new file mode 100644 index 000000000000..56961ba404cc --- /dev/null +++ b/test/Modules/pch-used.m @@ -0,0 +1,8 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: %clang_cc1 -x objective-c-header -emit-pch %S/Inputs/pch-used.h -o %t/pch-used.h.pch -fmodules -fmodules-cache-path=%t/cache -O0 -isystem %S/Inputs/System/usr/include +// RUN: %clang_cc1 %s -include-pch %t/pch-used.h.pch -fmodules -fmodules-cache-path=%t/cache -O0 -isystem %S/Inputs/System/usr/include -emit-llvm -o - | FileCheck %s + +void f() { SPXTrace(); } + +// CHECK: define internal void @SPXTrace |