]> granicus.if.org Git - clang/commitdiff
Driver: Add test for pipelining for analyzer and precompiler.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Mar 2009 23:26:35 +0000 (23:26 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Mar 2009 23:26:35 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67129 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/phases.c

index fa34b8f6e09b7808a364e0616f0932b422842513..3d5677bc88aef82ba57ca721c07890222dc0f963 100644 (file)
 // RUN: clang-driver -ccc-host-triple x86_64-apple-darwin9 -ccc-print-phases -c -x assembler %s -m64 -m32 &> %t &&
 // RUN: grep -F '2: bind-arch, "i386", {1}, object' %t &&
 
+// Analyzer
+// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-phases --analyze %s &> %t &&
+// RUN: grep '0: input, ".*phases.c", c' %t &&
+// RUN: grep -F '1: preprocessor, {0}, cpp-output' %t &&
+// RUN: grep -F '2: analyzer, {1}, plist' %t &&
+
+// Precompiler
+// RUN: clang-driver -ccc-host-triple i386-unknown-unknown -ccc-print-phases -x c-header %s &> %t &&
+// RUN: grep '0: input, ".*phases.c", c' %t &&
+// RUN: grep -F '1: preprocessor, {0}, cpp-output' %t &&
+// RUN: grep -F '2: precompiler, {1}, precompiled-header' %t &&
+
+// RUN: clang-driver
 // RUN: true