1 // RUN: %clang_cc1 %s -fno-rtti-data -triple=i386-pc-win32 -o - -emit-llvm | FileCheck %s
2 
3 // vftable shouldn't have RTTI data in it.
4 // CHECK-NOT: @"\01??_R4S@@6B@"
5 // CHECK: @"\01??_7S@@6B@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast ({{.*}} @"\01??_GS@@UAEPAXI@Z" to i8*)]
6 
7 struct type_info;
8 namespace std { using ::type_info; }
9 
10 struct S {
11   virtual ~S();
12 } s;
13 
14 struct U : S {
15   virtual ~U();
16 };
17 
18 extern S *getS();
19 
20 const std::type_info &ti = typeid(*getS());
21 const U &u = dynamic_cast<U &>(*getS());
22 // CHECK: call i8* @__RTDynamicCast(i8* %{{.+}}, i32 0, i8* bitcast ({{.*}} @"\01??_R0?AUS@@@8" to i8*), i8* bitcast ({{.*}} @"\01??_R0?AUU@@@8" to i8*), i32 1)
23