You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
364 B
13 lines
364 B
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fsanitize=cfi-mfcall -fsanitize-trap=cfi-mfcall -fvisibility hidden -emit-llvm -o - %s | FileCheck %s
|
|
|
|
struct S;
|
|
|
|
void f(S *s, void (S::*p)()) {
|
|
// CHECK-NOT: llvm.type.test
|
|
// CHECK: llvm.type.test{{.*}}!"_ZTSM1SFvvE.virtual"
|
|
// CHECK-NOT: llvm.type.test
|
|
(s->*p)();
|
|
}
|
|
|
|
// CHECK: declare i1 @llvm.type.test
|