summaryrefslogtreecommitdiff
path: root/test/Driver/lto-plugin-darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/lto-plugin-darwin.c')
-rw-r--r--test/Driver/lto-plugin-darwin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/lto-plugin-darwin.c b/test/Driver/lto-plugin-darwin.c
new file mode 100644
index 000000000000..2e9e6ba5b425
--- /dev/null
+++ b/test/Driver/lto-plugin-darwin.c
@@ -0,0 +1,6 @@
+// Check that Darwin uses LLVMgold.dylib.
+// REQUIRES: system-darwin
+// RUN: %clang -### %s -target x86_64-unknown-linux -flto 2>&1 \
+// RUN: | FileCheck -check-prefix=CHECK-LTO-PLUGIN %s
+//
+// CHECK-LTO-PLUGIN: "-plugin" "{{.*}}/LLVMgold.dylib"