1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fvisibility=hidden -fms-extensions -fsanitize=cfi-vcall -emit-llvm -o - %s | FileCheck --check-prefix=CHECK --check-prefix=NOBL %s
3 // Check that ignore listing cfi and cfi-vcall work correctly
4 // RUN: echo "[cfi-vcall]" > %t.vcall.txt
5 // RUN: echo "type:std::*" >> %t.vcall.txt
6 // RUN: %clang_cc1 -triple %itanium_abi_triple -fvisibility=hidden -fms-extensions -fsanitize=cfi-vcall -fsanitize-ignorelist=%t.vcall.txt -emit-llvm -o - %s | FileCheck --check-prefix=CHECK --check-prefix=NOSTD %s
8 // RUN: echo "[cfi]" > %t.cfi.txt
9 // RUN: echo "type:std::*" >> %t.cfi.txt
10 // RUN: %clang_cc1 -triple %itanium_abi_triple -fvisibility=hidden -fms-extensions -fsanitize=cfi-vcall -fsanitize-ignorelist=%t.cfi.txt -emit-llvm -o - %s | FileCheck --check-prefix=CHECK --check-prefix=NOSTD %s
12 // Check that ignore listing non-vcall modes does not affect vcalls
13 // RUN: echo "[cfi-icall|cfi-nvcall|cfi-cast-strict|cfi-derived-cast|cfi-unrelated-cast]" > %t.other.txt
14 // RUN: echo "type:std::*" >> %t.other.txt
15 // RUN: %clang_cc1 -triple %itanium_abi_triple -fvisibility=hidden -fms-extensions -fsanitize=cfi-vcall -fsanitize-ignorelist=%t.other.txt -emit-llvm -o - %s | FileCheck --check-prefix=CHECK --check-prefix=NOBL %s
29 // CHECK: define{{.*}}s1f
30 // NOBL: llvm.type.test
31 // NOSTD: llvm.type.test
36 // CHECK: define{{.*}}s2f
37 // NOBL: llvm.type.test
38 // NOSTD-NOT: llvm.type.test
39 void s2f(std::S2
*s2
) {