summaryrefslogtreecommitdiff
path: root/clang/test/Driver/gold-lto.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/gold-lto.c')
-rw-r--r--clang/test/Driver/gold-lto.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/gold-lto.c b/clang/test/Driver/gold-lto.c
new file mode 100644
index 0000000..05ac27a
--- /dev/null
+++ b/clang/test/Driver/gold-lto.c
@@ -0,0 +1,6 @@
+// RUN: touch %t.o
+// RUN: %clang -target x86_64-pc-linux-gnu -### %t.o -O4 -Wl,-plugin-opt=foo 2> %t.log
+// RUN: FileCheck %s < %t.log
+
+// CHECK: "-plugin" "{{.*}}/LLVMgold.so"
+// CHECK: "-plugin-opt=foo"