You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
405 B
13 lines
405 B
4 months ago
|
// 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@@"}
|