summaryrefslogtreecommitdiff
path: root/test/Preprocessor/pic.c
blob: 72cf1b1352155b81d590da8874c76651b26fa956 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang -ccc-host-triple i386-unknown-unknown -static -dM -E -o %t %s
// RUN: grep '#define __PIC__' %t | count 0
// RUN: grep '#define __pic__' %t | count 0
// RUN: clang -ccc-host-triple i386-unknown-unknown -fpic -dM -E -o %t %s
// RUN: grep '#define __PIC__ 1' %t | count 1
// RUN: grep '#define __pic__ 1' %t | count 1
// RUN: clang -ccc-host-triple i386-unknown-unknown -fPIC -dM -E -o %t %s
// RUN: grep '#define __PIC__ 2' %t | count 1
// RUN: grep '#define __pic__ 2' %t | count 1
// RUN: true