diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/PCH/target-options.c | 5 | ||||
-rw-r--r-- | clang/test/PCH/target-options.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/target-options.c b/clang/test/PCH/target-options.c new file mode 100644 index 00000000000..2b85efe07ab --- /dev/null +++ b/clang/test/PCH/target-options.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-pch -o %t.pch %S/target-options.h +// RUN: not %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t.pch %s -emit-llvm -o - > %t.err 2>&1 +// RUN: FileCheck %s < %t.err + +// CHECK: for the target diff --git a/clang/test/PCH/target-options.h b/clang/test/PCH/target-options.h new file mode 100644 index 00000000000..2c3edf6aa2e --- /dev/null +++ b/clang/test/PCH/target-options.h @@ -0,0 +1,2 @@ +enum { apple_cc = __APPLE_CC__ }; + |