Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / microsoft-no-rtti-data.cpp
blob069f0226ab948062eb3ee160aa7287a93e4ccab1
1 // RUN: %clang_cc1 %s -fno-rtti-data -triple=i386-pc-win32 -o - -emit-llvm | FileCheck %s
3 // vftable shouldn't have RTTI data in it.
4 // CHECK-NOT: @"??_R4S@@6B@"
5 // CHECK: @"??_7S@@6B@" = linkonce_odr unnamed_addr constant { [1 x ptr] } { [1 x ptr] [ptr @"??_GS@@UAEPAXI@Z"] }, comdat
7 struct type_info;
8 namespace std { using ::type_info; }
10 struct S {
11 virtual ~S();
12 } s;
14 struct U : S {
15 virtual ~U();
18 extern S *getS();
20 const std::type_info &ti = typeid(*getS());
21 const U &u = dynamic_cast<U &>(*getS());
22 // CHECK: call ptr @__RTDynamicCast(ptr %{{.+}}, i32 0, ptr @"??_R0?AUS@@@8", ptr @"??_R0?AUU@@@8", i32 1)