summaryrefslogtreecommitdiff
path: root/clang/test/Driver/linker-opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/linker-opts.c')
-rw-r--r--clang/test/Driver/linker-opts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/linker-opts.c b/clang/test/Driver/linker-opts.c
new file mode 100644
index 0000000..d036dfd
--- /dev/null
+++ b/clang/test/Driver/linker-opts.c
@@ -0,0 +1,5 @@
+// RUN: env LIBRARY_PATH=%T/test1 %clang -x c %s -### 2>&1 | FileCheck %s
+// CHECK: "-L" "{{.*}}/test1"
+
+// GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH.
+// XFAIL: cygwin,mingw32