2009-04-09 03:02:51 +04:00
|
|
|
// RUN: clang -ccc-host-triple i386-unknown-unknown -static -dM -E -o %t %s &&
|
2009-04-08 07:03:23 +04:00
|
|
|
// RUN: grep '#define __PIC__' %t | count 0 &&
|
|
|
|
// RUN: grep '#define __pic__' %t | count 0 &&
|
2009-04-09 03:02:51 +04:00
|
|
|
// RUN: clang -ccc-host-triple i386-unknown-unknown -fpic -dM -E -o %t %s &&
|
2009-04-08 07:03:23 +04:00
|
|
|
// RUN: grep '#define __PIC__ 1' %t | count 1 &&
|
|
|
|
// RUN: grep '#define __pic__ 1' %t | count 1 &&
|
2009-04-09 03:02:51 +04:00
|
|
|
// RUN: clang -ccc-host-triple i386-unknown-unknown -fPIC -dM -E -o %t %s &&
|
2009-04-08 07:03:23 +04:00
|
|
|
// RUN: grep '#define __PIC__ 2' %t | count 1 &&
|
|
|
|
// RUN: grep '#define __pic__ 2' %t | count 1 &&
|
|
|
|
// RUN: true
|