Daniel Dunbar | bc85be8 | 2009-04-29 18:32:25 +0000 | [diff] [blame] | 1 | // Verify that the analyzer gets the same flags as normal compilation |
| 2 | // (at least for a few key ones). |
| 3 | |
Douglas Gregor | 2250d31 | 2009-06-17 15:41:17 +0000 | [diff] [blame^] | 4 | // RUN: env MACOSX_DEPLOYMENT_TARGET=10.5 clang -ccc-host-triple i386-apple-darwin9 -### --analyze -o /dev/null %s -msse 2> %t.log && |
Daniel Dunbar | bc85be8 | 2009-04-29 18:32:25 +0000 | [diff] [blame] | 5 | // RUN: grep '"-analyze"' %t.log && |
| 6 | // RUN: grep '"--fmath-errno=0"' %t.log && |
Daniel Dunbar | 868bd0a | 2009-05-06 03:16:41 +0000 | [diff] [blame] | 7 | // RUN: grep '"-target-feature" "+sse"' %t.log && |
Douglas Gregor | 176d2c1 | 2009-06-16 23:37:56 +0000 | [diff] [blame] | 8 | // RUN: grep '"-mmacosx-version-min=10.5"' %t.log |
Daniel Dunbar | bc85be8 | 2009-04-29 18:32:25 +0000 | [diff] [blame] | 9 | |