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