2010-03-27 10:52:40 +08:00
|
|
|
// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
|
|
|
|
|
|
|
#include <typeinfo>
|
|
|
|
|
|
|
|
std::type_info foo() {
|
|
|
|
return typeid(void);
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace __cxxabiv1 {
|
|
|
|
struct __fundamental_type_info {
|
2010-04-08 23:52:03 +08:00
|
|
|
virtual ~__fundamental_type_info();
|
2010-03-27 10:52:40 +08:00
|
|
|
};
|
2010-04-08 23:52:03 +08:00
|
|
|
|
|
|
|
__fundamental_type_info::~__fundamental_type_info() { }
|
2010-03-27 10:52:40 +08:00
|
|
|
}
|
|
|
|
|
2010-11-04 13:28:09 +08:00
|
|
|
// void
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIv = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPv = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKv = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// std::nullptr_t
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIDn = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPDn = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKDn = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// bool
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIb = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPb = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKb = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// wchar_t
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIw = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPw = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKw = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// char
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIc = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPc = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKc = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned char
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIh = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPh = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKh = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// signed char
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIa = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPa = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKa = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// short
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIs = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPs = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKs = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned short
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIt = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPt = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKt = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// int
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIi = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPi = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKi = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned int
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIj = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPj = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKj = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// long
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIl = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPl = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKl = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned long
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIm = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPm = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKm = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// long long
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIx = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPx = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKx = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned long long
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIy = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPy = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKy = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// float
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIf = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPf = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKf = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// double
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTId = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPd = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKd = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// long double
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIe = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPe = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKe = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// char16_t
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIDs = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPDs = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKDs = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// char32_t
|
2011-01-12 07:55:05 +08:00
|
|
|
// CHECK: @_ZTIDi = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPDi = unnamed_addr constant
|
|
|
|
// CHECK: @_ZTIPKDi = unnamed_addr constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|