summaryrefslogtreecommitdiff
path: root/test/Driver/phases.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-13 20:45:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-13 20:45:03 +0000
commit83df91b63b74b19cdd79bdee2aeca6b9bef1c182 (patch)
tree40bfdd5a1e01b239bf4c59222a0cf6d503ec8fa5 /test/Driver/phases.c
parent209bb438042ef7652b2b046e43d4ffb5a00d9725 (diff)
downloadclang-83df91b63b74b19cdd79bdee2aeca6b9bef1c182.tar.gz
Driver: Test pipelining for universal builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/phases.c')
-rw-r--r--test/Driver/phases.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Driver/phases.c b/test/Driver/phases.c
index c7bde0f3b1..26ff710baa 100644
--- a/test/Driver/phases.c
+++ b/test/Driver/phases.c
@@ -23,4 +23,25 @@
// RUN: grep -F '20: assembler, {19}, object' %t &&
// RUN: grep -F '21: linker, {3, 7, 11, 13, 16, 20}, image' %t &&
+// Universal linked image.
+// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -x c %s -arch ppc -arch i386 &> %t &&
+// RUN: grep -F '0: input, "phases.c", c' %t &&
+// RUN: grep -F '1: preprocessor, {0}, cpp-output' %t &&
+// RUN: grep -F '2: compiler, {1}, assembler' %t &&
+// RUN: grep -F '3: assembler, {2}, object' %t &&
+// RUN: grep -F '4: linker, {3}, image' %t &&
+// RUN: grep -F '5: bind-arch, "ppc", {4}, image' %t &&
+// RUN: grep -F '6: bind-arch, "i386", {4}, image' %t &&
+// RUN: grep -F '7: lipo, {5, 6}, image' %t &&
+
+// Universal object file.
+// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c -x c %s -arch ppc -arch i386 &> %t &&
+// RUN: grep -F '0: input, "phases.c", c' %t &&
+// RUN: grep -F '1: preprocessor, {0}, cpp-output' %t &&
+// RUN: grep -F '2: compiler, {1}, assembler' %t &&
+// RUN: grep -F '3: assembler, {2}, object' %t &&
+// RUN: grep -F '4: bind-arch, "ppc", {3}, object' %t &&
+// RUN: grep -F '5: bind-arch, "i386", {3}, object' %t &&
+// RUN: grep -F '6: lipo, {4, 5}, object' %t &&
+
// RUN: true