Fix CFI tests in sanitizer-ld.
This test is not testing what it is supposed to test because of a mixup with the CHECK lines. llvm-svn: 255827
This commit is contained in:
parent
e5fa5a3c29
commit
17d6086a13
|
@ -306,9 +306,7 @@
|
||||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||||
// RUN: | FileCheck --check-prefix=CHECK-CFI-DIAG-LINUX %s
|
// RUN: | FileCheck --check-prefix=CHECK-CFI-DIAG-LINUX %s
|
||||||
// CHECK-CFI-DIAG-LINUX: "{{.*}}ld{{(.exe)?}}"
|
// CHECK-CFI-DIAG-LINUX: "{{.*}}ld{{(.exe)?}}"
|
||||||
// CHECK-CFI-CROSS-DSO-LINUX-NOT: libclang_rt.
|
// CHECK-CFI-DIAG-LINUX: "-whole-archive" "{{[^"]*}}libclang_rt.ubsan_standalone-x86_64.a" "-no-whole-archive"
|
||||||
// CHECK-CFI-DIAG-LINUX: libclang_rt.ubsan
|
|
||||||
// CHECK-CFI-CROSS-DSO-LINUX-NOT: libclang_rt.
|
|
||||||
|
|
||||||
// Cross-DSO CFI links the CFI runtime.
|
// Cross-DSO CFI links the CFI runtime.
|
||||||
// RUN: %clang -fsanitize=cfi -fsanitize-cfi-cross-dso %s -### -o %t.o 2>&1 \
|
// RUN: %clang -fsanitize=cfi -fsanitize-cfi-cross-dso %s -### -o %t.o 2>&1 \
|
||||||
|
@ -316,9 +314,7 @@
|
||||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||||
// RUN: | FileCheck --check-prefix=CHECK-CFI-CROSS-DSO-LINUX %s
|
// RUN: | FileCheck --check-prefix=CHECK-CFI-CROSS-DSO-LINUX %s
|
||||||
// CHECK-CFI-CROSS-DSO-LINUX: "{{.*}}ld{{(.exe)?}}"
|
// CHECK-CFI-CROSS-DSO-LINUX: "{{.*}}ld{{(.exe)?}}"
|
||||||
// CHECK-CFI-CROSS-DSO-LINUX-NOT: libclang_rt.
|
// CHECK-CFI-CROSS-DSO-LINUX: "-whole-archive" "{{[^"]*}}libclang_rt.cfi-x86_64.a" "-no-whole-archive"
|
||||||
// CHECK-CFI-CROSS-DSO-LINUX: libclang_rt.cfi-
|
|
||||||
// CHECK-CFI-CROSS-DSO-LINUX-NOT: libclang_rt.
|
|
||||||
|
|
||||||
// Cross-DSO CFI with diagnostics links just the CFI runtime.
|
// Cross-DSO CFI with diagnostics links just the CFI runtime.
|
||||||
// RUN: %clang -fsanitize=cfi -fsanitize-cfi-cross-dso %s -### -o %t.o 2>&1 \
|
// RUN: %clang -fsanitize=cfi -fsanitize-cfi-cross-dso %s -### -o %t.o 2>&1 \
|
||||||
|
@ -327,9 +323,7 @@
|
||||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||||
// RUN: | FileCheck --check-prefix=CHECK-CFI-CROSS-DSO-DIAG-LINUX %s
|
// RUN: | FileCheck --check-prefix=CHECK-CFI-CROSS-DSO-DIAG-LINUX %s
|
||||||
// CHECK-CFI-CROSS-DSO-DIAG-LINUX: "{{.*}}ld{{(.exe)?}}"
|
// CHECK-CFI-CROSS-DSO-DIAG-LINUX: "{{.*}}ld{{(.exe)?}}"
|
||||||
// CHECK-CFI-CROSS-DSO-DIAG-LINUX-NOT: libclang_rt.
|
// CHECK-CFI-CROSS-DSO-DIAG-LINUX: "-whole-archive" "{{[^"]*}}libclang_rt.cfi_diag-x86_64.a" "-no-whole-archive"
|
||||||
// CHECK-CFI-CROSS-DSO-DIAG-LINUX: libclang_rt.cfi_diag-
|
|
||||||
// CHECK-CFI-CROSS-DSO-DIAG-LINUX-NOT: libclang_rt.
|
|
||||||
|
|
||||||
// RUN: %clangxx -fsanitize=address %s -### -o %t.o 2>&1 \
|
// RUN: %clangxx -fsanitize=address %s -### -o %t.o 2>&1 \
|
||||||
// RUN: -mmacosx-version-min=10.6 \
|
// RUN: -mmacosx-version-min=10.6 \
|
||||||
|
|
Loading…
Reference in New Issue