summaryrefslogtreecommitdiff
path: root/test/Driver
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-02 20:14:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-02 20:14:53 +0000
commita8304f67291b0182fb64f3afc621615288dd1d31 (patch)
treec9f100c85b1ab2c22552131d7df3f11a64045d07 /test/Driver
parent5ddce196cb253ee12a31111a55af532d17ce0402 (diff)
downloadclang-a8304f67291b0182fb64f3afc621615288dd1d31.tar.gz
Driver: Generate an error when trying to pass an LLVM bc input to a
non-Darwin linker (sorry Gold + LTO-plugin users). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver')
-rw-r--r--test/Driver/emit-llvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Driver/emit-llvm.c b/test/Driver/emit-llvm.c
new file mode 100644
index 0000000000..a4aabe7256
--- /dev/null
+++ b/test/Driver/emit-llvm.c
@@ -0,0 +1,3 @@
+// RUN: not clang -ccc-host-triple i386-pc-linux-gnu -emit-llvm -o %t %s 2> %t.log &&
+// RUN: grep 'unable to pass LLVM bit-code files to linker' %t.log
+