diff options
Diffstat (limited to 'test/Driver/analyze.c')
-rw-r--r-- | test/Driver/analyze.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/analyze.c b/test/Driver/analyze.c new file mode 100644 index 0000000..338c614 --- /dev/null +++ b/test/Driver/analyze.c @@ -0,0 +1,9 @@ +// Verify that the analyzer gets the same flags as normal compilation +// (at least for a few key ones). + +// RUN: clang -ccc-host-triple i386-apple-darwin9 -### --analyze -o /dev/null %s -msse 2> %t.log && +// RUN: grep '"-analyze"' %t.log && +// RUN: grep '"--fmath-errno=0"' %t.log && +// RUN: grep '"-target-feature" "+sse"' %t.log && +// RUN: grep '"-mmacosx-version-min=10.5.0"' %t.log + |