blob: bb50a6558f37deda9caf29df787bc8e3b8c81e2c [file] [log] [blame]
Chandler Carruthc4cc4032011-10-01 00:37:39 +00001// General tests that ld invocations on Linux targets sane.
2//
3// RUN: %clang -no-canonical-prefixes -ccc-host-triple i386-unknown-linux %s -### -o %t.o 2>&1 \
4// RUN: | FileCheck --check-prefix=CHECK-LD-32 %s
5// CHECK-LD-32: "{{.*}}/ld" {{.*}} "-L/lib/../lib32" "-L/usr/lib/../lib32"
6//
7// RUN: %clang -no-canonical-prefixes -ccc-host-triple x86_64-unknown-linux %s -### -o %t.o 2>&1 \
8// RUN: | FileCheck --check-prefix=CHECK-LD-64 %s
9// CHECK-LD-64: "{{.*}}/ld" {{.*}} "-L/lib/../lib64" "-L/usr/lib/../lib64"