blob: bdf699ae1ba0b810039bc27062eb23cb8ec86a1a [file] [log] [blame]
Chandler Carruth94bcd382011-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
Chandler Carruthc5ab7ef2011-10-01 02:08:56 +00005// CHECK-LD-32: "{{.*}}ld{{(.exe)?}}" {{.*}} "-L/lib/../lib{{(32)?}}" "-L/usr/lib/../lib{{(32)?}}"
Chandler Carruth94bcd382011-10-01 00:37:39 +00006//
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
Chandler Carruth59d9ebb2011-10-01 02:39:57 +00009// CHECK-LD-64: "{{.*}}ld{{(.exe)?}}" {{.*}} "-L/lib/../lib{{(64)?}}" "-L/usr/lib/../lib{{(64)?}}"