2016-04-19 07:12:59 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: mkdir %t
|
|
|
|
//
|
2019-08-08 09:55:27 +08:00
|
|
|
// RUN: env LIBRARY_PATH=%t/test1 %clang -target %itanium_abi_triple %s -la -### 2>&1 | FileCheck %s
|
2012-10-31 05:42:09 +08:00
|
|
|
// CHECK: "-L{{.*}}/test1"
|
2019-08-08 09:55:27 +08:00
|
|
|
// CHECK: "{{[^"]+}}.o"
|
|
|
|
// CHECK: "-la"
|
2012-03-16 13:31:24 +08:00
|
|
|
|
|
|
|
// GCC driver is used as linker on cygming. It should be aware of LIBRARY_PATH.
|
2012-12-11 15:06:09 +08:00
|
|
|
// REQUIRES: clang-driver
|
2013-12-17 19:11:25 +08:00
|
|
|
// REQUIRES: native
|
2014-07-30 04:17:52 +08:00
|
|
|
|
|
|
|
// Make sure that LIBRARY_PATH works for both i386 and x86_64 on Darwin.
|
2019-08-08 09:55:27 +08:00
|
|
|
// RUN: env LIBRARY_PATH=%t/test1 %clang -target x86_64-apple-darwin %s -la -### 2>&1 | FileCheck %s
|
|
|
|
// RUN: env LIBRARY_PATH=%t/test1 %clang -target i386-apple-darwin %s -la -### 2>&1 | FileCheck %s
|
2016-04-19 07:12:59 +08:00
|
|
|
//
|
|
|
|
// Make sure that we don't warn on unused compiler arguments.
|
|
|
|
// RUN: %clang -Xclang -I. -x c %s -c -o %t/tmp.o
|
|
|
|
// RUN: %clang -Xclang -I. %t/tmp.o -o %t/tmp -### 2>&1 | FileCheck %s --check-prefix=NO-UNUSED
|
|
|
|
// NO-UNUSED-NOT: warning:{{.*}}unused
|
|
|
|
//
|
|
|
|
// Make sure that we do warn in other cases.
|
|
|
|
// RUN: %clang %s -lfoo -c -o %t/tmp2.o -### 2>&1 | FileCheck %s --check-prefix=UNUSED
|
|
|
|
// UNUSED: warning:{{.*}}unused
|