aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-02 21:41:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-02 21:41:52 +0000
commit6ecc7a993f939c5255c36c7c0d965fb9c1543f2a (patch)
treeb561821434c18c700913938cc77f3e8c1d1cb47d /test
parenta8304f67291b0182fb64f3afc621615288dd1d31 (diff)
Driver: When using the generic gcc tool, pass -m32 or -m64 if we
recognize the architecture. - This is an attempt to force gcc to the write target. - PR4094. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Driver/unknown-gcc-arch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Driver/unknown-gcc-arch.c b/test/Driver/unknown-gcc-arch.c
new file mode 100644
index 0000000000..de9e8e84c4
--- /dev/null
+++ b/test/Driver/unknown-gcc-arch.c
@@ -0,0 +1,8 @@
+// RUN: clang -ccc-host-triple x86_64-unknown-unknown -c -x assembler %s -### 2> %t.log &&
+// RUN: grep '.*gcc.*"-m64"' %t.log &&
+// RUN: clang -ccc-host-triple x86_64-unknown-unknown -c -x assembler %s -### -m32 2> %t.log &&
+// RUN: grep '.*gcc.*"-m32"' %t.log &&
+// RUN: clang -ccc-host-triple i386-unknown-unknown -c -x assembler %s -### 2> %t.log &&
+// RUN: grep '.*gcc.*"-m32"' %t.log &&
+// RUN: clang -ccc-host-triple i386-unknown-unknown -c -x assembler %s -### -m64 2> %t.log &&
+// RUN: grep '.*gcc.*"-m64"' %t.log