summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/phases.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-17 21:29:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-17 21:29:52 +0000
commit71bdee6ea1e439e02c222270c60e293cf01c0e84 (patch)
tree6a067a72193021c9bf320d0c864203ccb7b93609 /clang/test/Driver/phases.c
parent7a70c5ddbf7738b67b4af23afd554998aa0c5282 (diff)
downloadbcm5719-llvm-71bdee6ea1e439e02c222270c60e293cf01c0e84.tar.gz
bcm5719-llvm-71bdee6ea1e439e02c222270c60e293cf01c0e84.zip
Driver: Make sure to get the default arch name from the tool chain, not the
host; the toolchain may differ based on command line arguments. llvm-svn: 67106
Diffstat (limited to 'clang/test/Driver/phases.c')
-rw-r--r--clang/test/Driver/phases.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Driver/phases.c b/clang/test/Driver/phases.c
index 139fbca1b2b..fa34b8f6e09 100644
--- a/clang/test/Driver/phases.c
+++ b/clang/test/Driver/phases.c
@@ -44,4 +44,14 @@
// RUN: grep -F '5: bind-arch, "i386", {3}, object' %t &&
// RUN: grep -F '6: lipo, {4, 5}, object' %t &&
+// Arch defaulting
+// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c -x assembler %s &> %t &&
+// RUN: grep -F '2: bind-arch, "i386", {1}, object' %t &&
+// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-phases -c -x assembler %s -m32 -m64 &> %t &&
+// RUN: grep -F '2: bind-arch, "x86_64", {1}, object' %t &&
+// RUN: clang-driver -ccc-host-triple x86_64-apple-darwin9 -ccc-print-phases -c -x assembler %s &> %t &&
+// RUN: grep -F '2: bind-arch, "x86_64", {1}, object' %t &&
+// 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 &&
+
// RUN: true
OpenPOWER on IntegriCloud