aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/ubsan-ld.c
blob: 775e6699443f81719476611c08c80c46fe28ef45 (plain)
1
2
3
4
5
6
7
8
9
10
// Test UndefinedBehaviorSanitizer ld flags.

// RUN: %clang -fcatch-undefined-behavior %s -### -o %t.o 2>&1 \
// RUN:     -target i386-unknown-linux \
// RUN:     --sysroot=%S/Inputs/basic_linux_tree \
// RUN:   | FileCheck --check-prefix=CHECK-LINUX %s
// CHECK-LINUX: "{{.*}}ld{{(.exe)?}}"
// CHECK-LINUX-NOT: "-lc"
// CHECK-LINUX: libclang_rt.ubsan-i386.a"
// CHECK-LINUX: "-lpthread"