aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/darwin-arch-default.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-11-08 03:38:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-11-08 03:38:26 +0000
commitd2a527eae6df377b326e8d764782bc34f1e64189 (patch)
treec6410a4e9171e570ee1ce23ea4347270baddb31d /test/Driver/darwin-arch-default.c
parent85b7f7ddf2f09778ec303f5a39f9e67e3aae1115 (diff)
Driver/Darwin: The -arch argument values aren't exactly the arch names from a
triple. - Translate the special case of powerpc to its expected -arch name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/darwin-arch-default.c')
-rw-r--r--test/Driver/darwin-arch-default.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Driver/darwin-arch-default.c b/test/Driver/darwin-arch-default.c
new file mode 100644
index 0000000000..60bf61de8a
--- /dev/null
+++ b/test/Driver/darwin-arch-default.c
@@ -0,0 +1,7 @@
+// Check that the name of the arch we bind is "ppc" not "powerpc".
+//
+// RUN: %clang -target powerpc-apple-darwin8 -### \
+// RUN: -ccc-print-phases %s 2> %t
+// RUN: FileCheck --check-prefix=CHECK-POWERPC < %t %s
+//
+// CHECK-POWERPC: bind-arch, "ppc"