summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-04-08 16:40:31 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-04-08 16:40:31 +0000
commit4e9733791483ac737e3f2e1545129552cf5d2ed7 (patch)
treec411213fca3bee5f9217acbedd791ad923c5dde5 /clang/test/Preprocessor
parentf4725b468ec2f7a7c1320b8214692230fc279bb7 (diff)
downloadbcm5719-llvm-4e9733791483ac737e3f2e1545129552cf5d2ed7.tar.gz
bcm5719-llvm-4e9733791483ac737e3f2e1545129552cf5d2ed7.zip
Rephrase the preprocessor test to directly use CC1 and not bother
testing any of the strange driver behavior. We already have some tiny tests for the driver behavior, and I'm going to expand them greatly in the next commit. llvm-svn: 154290
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/pic.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/clang/test/Preprocessor/pic.c b/clang/test/Preprocessor/pic.c
index a65cef8409c..4597f4301fc 100644
--- a/clang/test/Preprocessor/pic.c
+++ b/clang/test/Preprocessor/pic.c
@@ -1,12 +1,12 @@
-// RUN: %clang -target i386-unknown-unknown -static -dM -E -o - %s \
-// RUN: | FileCheck --check-prefix=CHECK-STATIC %s
-// CHECK-STATIC-NOT: #define __PIC__
-// CHECK-STATIC-NOT: #define __pic__
-// RUN: %clang -target i386-unknown-unknown -fpic -dM -E -o - %s \
-// RUN: | FileCheck --check-prefix=CHECK-LOWERPIC %s
-// CHECK-LOWERPIC: #define __PIC__ 1
-// CHECK-LOWERPIC: #define __pic__ 1
-// RUN: %clang -target i386-unknown-unknown -fPIC -dM -E -o - %s \
-// RUN: | FileCheck --check-prefix=CHECK-UPPERPIC %s
-// CHECK-UPPERPIC: #define __PIC__ 2
-// CHECK-UPPERPIC: #define __pic__ 2
+// RUN: %clang_cc1 -dM -E -o - %s \
+// RUN: | FileCheck %s
+// CHECK-NOT: #define __PIC__
+// CHECK-NOT: #define __pic__
+// RUN: %clang_cc1 -pic-level 1 -dM -E -o - %s \
+// RUN: | FileCheck --check-prefix=CHECK-PIC1 %s
+// CHECK-PIC1: #define __PIC__ 1
+// CHECK-PIC1: #define __pic__ 1
+// RUN: %clang_cc1 -pic-level 2 -dM -E -o - %s \
+// RUN: | FileCheck --check-prefix=CHECK-PIC2 %s
+// CHECK-PIC2: #define __PIC__ 2
+// CHECK-PIC2: #define __pic__ 2
OpenPOWER on IntegriCloud