xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/linker-opts.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: env LIBRARY_PATH=%T/test1 %clang -x c %s -### 2>&1 | FileCheck %s
2f4a2713aSLionel Sambuc // CHECK: "-L{{.*}}/test1"
3f4a2713aSLionel Sambuc 
4f4a2713aSLionel Sambuc // GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH.
5f4a2713aSLionel Sambuc // XFAIL: win32
6f4a2713aSLionel Sambuc // REQUIRES: clang-driver
7*0a6a1f1dSLionel Sambuc // REQUIRES: native
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc // Make sure that LIBRARY_PATH works for both i386 and x86_64 on Darwin.
10*0a6a1f1dSLionel Sambuc // RUN: env LIBRARY_PATH=%T/test1 %clang -target x86_64-apple-darwin %s -### 2>&1 | FileCheck %s
11*0a6a1f1dSLionel Sambuc // RUN: env LIBRARY_PATH=%T/test1 %clang -target i386-apple-darwin  %s -### 2>&1 | FileCheck %s
12