llvm-project/clang/test/CodeGenCXX/cfi-ms-rtti.cpp
Peter Collingbourne 8dd14da0dc CodeGen: Update Clang to use the new type metadata.
Differential Revision: http://reviews.llvm.org/D21054

llvm-svn: 273730
2016-06-24 21:21:46 +00:00

13 lines
383 B
C++

// RUN: %clang_cc1 -flto -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall | FileCheck --check-prefix=RTTI %s
// RUN: %clang_cc1 -flto -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@@"}