2014-07-02 06:24:56 +08:00
|
|
|
// RUN: %clang_cc1 %s -fno-rtti-data -triple=i386-pc-win32 -o - -emit-llvm | FileCheck %s
|
|
|
|
|
|
|
|
// vftable shouldn't have RTTI data in it.
|
2014-07-24 14:09:19 +08:00
|
|
|
// CHECK-NOT: @"\01??_R4S@@6B@"
|
2014-07-02 06:24:56 +08:00
|
|
|
// CHECK: @"\01??_7S@@6B@" = linkonce_odr unnamed_addr constant [1 x i8*] [i8* bitcast ({{.*}} @"\01??_GS@@UAEPAXI@Z" to i8*)]
|
|
|
|
|
|
|
|
struct type_info;
|
|
|
|
namespace std { using ::type_info; }
|
|
|
|
|
|
|
|
struct S {
|
|
|
|
virtual ~S();
|
|
|
|
} s;
|
|
|
|
|
|
|
|
struct U : S {
|
|
|
|
virtual ~U();
|
|
|
|
};
|
|
|
|
|
|
|
|
extern S *getS();
|
|
|
|
|
|
|
|
const std::type_info &ti = typeid(*getS());
|
|
|
|
const U &u = dynamic_cast<U &>(*getS());
|
2014-07-02 07:33:03 +08:00
|
|
|
// 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)
|