diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-01 00:37:39 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-01 00:37:39 +0000 |
commit | 94bcd38d1056f76e21e09e71e004f5d0f77eb063 (patch) | |
tree | a5ba8a53f8ddb82d13d479963efc4d1a28fce7c5 /clang/test/Driver/linux-ld.c | |
parent | 6d913a188459320d819012d59b64abe02efa8e89 (diff) | |
download | bcm5719-llvm-94bcd38d1056f76e21e09e71e004f5d0f77eb063.tar.gz bcm5719-llvm-94bcd38d1056f76e21e09e71e004f5d0f77eb063.zip |
Add a test that ensures we get the basic multilib '-L' flags to 'ld'
invocations on Linux.
llvm-svn: 140909
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
-rw-r--r-- | clang/test/Driver/linux-ld.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c new file mode 100644 index 00000000000..bb50a6558f3 --- /dev/null +++ b/clang/test/Driver/linux-ld.c @@ -0,0 +1,9 @@ +// General tests that ld invocations on Linux targets sane. +// +// RUN: %clang -no-canonical-prefixes -ccc-host-triple i386-unknown-linux %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-LD-32 %s +// CHECK-LD-32: "{{.*}}/ld" {{.*}} "-L/lib/../lib32" "-L/usr/lib/../lib32" +// +// RUN: %clang -no-canonical-prefixes -ccc-host-triple x86_64-unknown-linux %s -### -o %t.o 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-LD-64 %s +// CHECK-LD-64: "{{.*}}/ld" {{.*}} "-L/lib/../lib64" "-L/usr/lib/../lib64" |