blob: 51f7f0cd65b91b511d78c6095c2bb6878fab15b1 [file] [log] [blame]
Daniel Dunbarbc85be82009-04-29 18:32:25 +00001// Verify that the analyzer gets the same flags as normal compilation
2// (at least for a few key ones).
3
Douglas Gregor176d2c12009-06-16 23:37:56 +00004// RUN: env MACOSX_DEPLOYMENT_TARGET=10.5 &&
Daniel Dunbarbc85be82009-04-29 18:32:25 +00005// RUN: clang -ccc-host-triple i386-apple-darwin9 -### --analyze -o /dev/null %s -msse 2> %t.log &&
6// RUN: grep '"-analyze"' %t.log &&
7// RUN: grep '"--fmath-errno=0"' %t.log &&
Daniel Dunbar868bd0a2009-05-06 03:16:41 +00008// RUN: grep '"-target-feature" "+sse"' %t.log &&
Douglas Gregor176d2c12009-06-16 23:37:56 +00009// RUN: grep '"-mmacosx-version-min=10.5"' %t.log
Daniel Dunbarbc85be82009-04-29 18:32:25 +000010