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 | c4cc403d1e7b020d6d5deb968e4686301a8c83ac (patch) | |
tree | be0477c32cdda815d1a95e33b9173efc51c379d5 | |
parent | eb86b5b039230f5bf7f5bebdc345bf6843410425 (diff) |
Add a test that ensures we get the basic multilib '-L' flags to 'ld'
invocations on Linux.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140909 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Driver/linux-ld.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c new file mode 100644 index 0000000000..bb50a6558f --- /dev/null +++ b/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" |