Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall | FileCheck --check-prefix=RTTI %s
      2 // RUN: %clang_cc1 -emit-llvm -o - -triple=x86_64-pc-win32 %s -fsanitize=cfi-vcall -fno-rtti-data | FileCheck --check-prefix=NO-RTTI %s
      3 
      4 struct A {
      5   A();
      6   virtual void f() {}
      7 };
      8 
      9 A::A() {}
     10 
     11 // RTTI: !{!"?AUA@@", [2 x i8*]* {{.*}}, i64 8}
     12 // NO-RTTI: !{!"?AUA@@", [1 x i8*]* {{.*}}, i64 0}
     13