summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/pic.c
blob: a65cef8409cd0c2963f1a5d22222b07e8824c061 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
OpenPOWER on IntegriCloud