[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / ms-novtable.cpp
blobdb0cf6886ca2e2165c96d5cab038cb6fae738a16
1 // RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-extensions -fms-compatibility -fno-rtti -o - | FileCheck %s
3 // CHECK-NOT: @"??_7C@@6B@"
5 // CHECK-DAG: @"??_7A2@@6B@"
7 // CHECK-DAG: @"??_7B2@@6B@"
9 // CHECK-NOT: @"??_7B1@@6B@"
11 // CHECK-NOT: @"??_7A1@@6B@"
13 struct __declspec(novtable) A1 {
14 virtual void a();
15 } a1;
16 struct A2 {
17 virtual void a();
19 struct __declspec(novtable) B1 : virtual A1 {} b1;
20 struct B2 : virtual A1 {} b2;
21 struct __declspec(novtable) C : virtual A2 {} c;