summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Driver/mingw-lto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Driver/mingw-lto.c b/clang/test/Driver/mingw-lto.c
new file mode 100644
index 00000000000..8bb4aedefd6
--- /dev/null
+++ b/clang/test/Driver/mingw-lto.c
@@ -0,0 +1,4 @@
+// The default linker doesn't support LLVM bitcode
+// RUN: not %clang -target i686-pc-windows-gnu %s -flto -fuse-ld=bfd
+// When using lld, this is allowed though.
+// RUN: %clang -target i686-pc-windows-gnu -### %s -flto -fuse-ld=lld
OpenPOWER on IntegriCloud