summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/ms-novtable.cpp
blob: db0cf6886ca2e2165c96d5cab038cb6fae738a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -fms-extensions -fms-compatibility -fno-rtti -o - | FileCheck %s

// CHECK-NOT: @"??_7C@@6B@"

// CHECK-DAG: @"??_7A2@@6B@"

// CHECK-DAG: @"??_7B2@@6B@"

// CHECK-NOT: @"??_7B1@@6B@"

// CHECK-NOT: @"??_7A1@@6B@"

struct __declspec(novtable) A1 {
  virtual void a();
} a1;
struct                      A2 {
  virtual void a();
};
struct __declspec(novtable) B1 : virtual A1 {} b1;
struct                      B2 : virtual A1 {} b2;
struct __declspec(novtable) C  : virtual A2 {} c;