summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/cfi-ms-rtti.cpp
blob: 328297d85c12c5e384f6a67f73e92b5b478b8da8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -flto -flto-unit -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall | FileCheck --check-prefix=RTTI %s
// RUN: %clang_cc1 -flto -flto-unit -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall -fno-rtti-data | FileCheck --check-prefix=NO-RTTI %s

struct A {
  A();
  virtual void f() {}
};

A::A() {}

// RTTI: !{i64 8, !"?AUA@@"}
// NO-RTTI: !{i64 0, !"?AUA@@"}