
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
23 lines
683 B
C++
23 lines
683 B
C++
// RUN: %clang_cc1 %s -fno-rtti-data -triple=i386-pc-win32 -o - -emit-llvm | FileCheck %s
|
|
|
|
// vftable shouldn't have RTTI data in it.
|
|
// CHECK-NOT: @"\01??_R4S@@6B@"
|
|
// 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());
|
|
// 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)
|