summaryrefslogtreecommitdiff
path: root/clang/test/Driver/analyze.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/analyze.c')
-rw-r--r--clang/test/Driver/analyze.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Driver/analyze.c b/clang/test/Driver/analyze.c
new file mode 100644
index 0000000..68fa218
--- /dev/null
+++ b/clang/test/Driver/analyze.c
@@ -0,0 +1,8 @@
+// Verify that the analyzer gets the same flags as normal compilation
+// (at least for a few key ones).
+
+// RUN: env MACOSX_DEPLOYMENT_TARGET=10.5 %clang -target i386-apple-darwin9 -### --analyze -o /dev/null %s -msse 2> %t.log
+// RUN: FileCheck --input-file=%t.log %s
+
+// CHECK: "-analyze"
+// CHECK: "-target-feature" "+sse"