[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / cfi-speculative-vtable.cpp
blob5f3c59fb0cd097e93290ba8853f667e65544802b
1 // 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.
3 // RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -disable-llvm-passes -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -emit-llvm -o - %s | FileCheck %s
4 // RUN: %clang_cc1 -triple x86_64-unknown-linux -O1 -disable-llvm-passes -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -fsanitize-cfi-cross-dso -emit-llvm -o - %s | FileCheck %s
6 class A {
7 public:
8 virtual ~A();
9 };
11 A a;
13 // CHECK: @_ZTV1A ={{.*}} available_externally
14 // CHECK-NOT: !{{.*}} = !{!{{.*}}, ptr @_ZTV1A, i64 16}