blob: 06e6df86d358cda2be05cca50ab8d61d74a3e33a [file] [log] [blame]
Evgeniy Stepanov93987df2016-01-23 01:20:18 +00001// Test that we don't emit a bit set entry for a speculative (available_externally) vtable.
2// This does not happen in the Microsoft ABI.
Petr Hosek516e6cc2019-06-05 03:17:11 +00003// RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -fno-experimental-new-pass-manager -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -emit-llvm -o - %s | FileCheck %s
4// RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -fno-experimental-new-pass-manager -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -fsanitize-cfi-cross-dso -emit-llvm -o - %s | FileCheck %s
Evgeniy Stepanov93987df2016-01-23 01:20:18 +00005
6class A {
7 public:
8 virtual ~A();
9};
10
11A a;
12
13// CHECK: @_ZTV1A ={{.*}} available_externally
14// CHECK-NOT: !{{.*}} = !{!{{.*}}, [4 x i8*]* @_ZTV1A, i64 16}