| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: mkdir %t |
| 3 |
// |
| 4 |
// RUN: env LIBRARY_PATH=%t/test1 %clang -target %itanium_abi_triple %s -la -### 2>&1 | FileCheck %s |
| 5 |
// CHECK: "-L{{.*}}/test1" |
| 6 |
// CHECK: "{{[^"]+}}.o" |
| 7 |
// CHECK: "-la" |
| 8 |
|
| 9 |
// GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH. |
| 10 |
// REQUIRES: native |
| 11 |
|
| 12 |
// Make sure that LIBRARY_PATH works for both i386 and x86_64 on Darwin. |
| 13 |
// RUN: env LIBRARY_PATH=%t/test1 %clang -target x86_64-apple-darwin %s -la -### 2>&1 | FileCheck %s |
| 14 |
// RUN: env LIBRARY_PATH=%t/test1 %clang -target i386-apple-darwin %s -la -### 2>&1 | FileCheck %s |
| 15 |
// |
| 16 |
// Make sure that we don't warn on unused compiler arguments. |
| 17 |
// RUN: %clang -Xclang -I. -x c %s -c -o %t/tmp.o |
| 18 |
// RUN: %clang -### -I. -ibuiltininc -nobuiltininc -nostdinc -nostdinc++ -nostdlibinc -nogpuinc %t/tmp.o -Wno-msvc-not-found -o /dev/null 2>&1 | FileCheck /dev/null --implicit-check-not=warning: |
| 19 |
|
| 20 |
// Make sure that we do warn in other cases. |
| 21 |
// RUN: %clang %s -lfoo -c -o %t/tmp2.o -### 2>&1 | FileCheck %s --check-prefix=UNUSED |
| 22 |
// UNUSED: warning:{{.*}}unused |