Daniel Dunbar | 748dd20 | 2009-04-08 23:02:51 +0000 | [diff] [blame] | 1 | // RUN: clang -ccc-host-triple i386-unknown-unknown -static -dM -E -o %t %s && |
Daniel Dunbar | 9fd0b1f | 2009-04-08 03:03:23 +0000 | [diff] [blame] | 2 | // RUN: grep '#define __PIC__' %t | count 0 && |
| 3 | // RUN: grep '#define __pic__' %t | count 0 && |
Daniel Dunbar | 748dd20 | 2009-04-08 23:02:51 +0000 | [diff] [blame] | 4 | // RUN: clang -ccc-host-triple i386-unknown-unknown -fpic -dM -E -o %t %s && |
Daniel Dunbar | 9fd0b1f | 2009-04-08 03:03:23 +0000 | [diff] [blame] | 5 | // RUN: grep '#define __PIC__ 1' %t | count 1 && |
| 6 | // RUN: grep '#define __pic__ 1' %t | count 1 && |
Daniel Dunbar | 748dd20 | 2009-04-08 23:02:51 +0000 | [diff] [blame] | 7 | // RUN: clang -ccc-host-triple i386-unknown-unknown -fPIC -dM -E -o %t %s && |
Daniel Dunbar | 9fd0b1f | 2009-04-08 03:03:23 +0000 | [diff] [blame] | 8 | // RUN: grep '#define __PIC__ 2' %t | count 1 && |
| 9 | // RUN: grep '#define __pic__ 2' %t | count 1 && |
| 10 | // RUN: true |