Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 1 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -static -dM -E -o %t %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: grep '#define __PIC__' %t | count 0 |
| 3 | // RUN: grep '#define __pic__' %t | count 0 |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 4 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -fpic -dM -E -o %t %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 5 | // RUN: grep '#define __PIC__ 1' %t | count 1 |
| 6 | // RUN: grep '#define __pic__ 1' %t | count 1 |
Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 7 | // RUN: %clang -ccc-host-triple i386-unknown-unknown -fPIC -dM -E -o %t %s |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 8 | // RUN: grep '#define __PIC__ 2' %t | count 1 |
| 9 | // RUN: grep '#define __pic__ 2' %t | count 1 |