2010-03-27 10:52:40 +08:00
|
|
|
// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
2018-07-24 08:43:47 +08:00
|
|
|
// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -fvisibility hidden -o - | FileCheck %s -check-prefix=CHECK-HIDDEN
|
2010-03-27 10:52:40 +08:00
|
|
|
|
|
|
|
#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
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIv = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIv = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPv = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPv = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKv = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKv = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// std::nullptr_t
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIDn = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIDn = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPDn = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPDn = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKDn = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKDn = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// bool
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIb = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIb = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPb = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPb = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKb = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKb = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// wchar_t
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIw = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIw = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPw = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPw = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKw = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKw = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// char
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIc = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIc = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPc = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPc = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKc = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKc = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned char
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIh = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIh = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPh = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPh = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKh = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKh = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// signed char
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIa = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIa = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPa = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPa = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKa = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKa = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// short
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIs = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIs = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPs = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPs = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKs = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKs = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned short
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIt = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIt = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPt = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPt = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKt = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKt = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// int
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIi = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIi = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPi = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPi = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKi = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKi = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned int
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIj = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIj = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPj = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPj = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKj = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKj = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// long
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIl = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIl = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPl = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPl = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKl = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKl = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned long
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIm = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIm = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPm = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPm = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKm = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKm = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// long long
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIx = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIx = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPx = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPx = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKx = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKx = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// unsigned long long
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIy = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIy = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPy = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPy = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKy = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKy = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
2016-02-03 09:32:42 +08:00
|
|
|
// __int128
|
|
|
|
// CHECK: @_ZTIn = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIn = hidden constant
|
2016-02-03 09:32:42 +08:00
|
|
|
// CHECK: @_ZTIPn = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPn = hidden constant
|
2016-02-03 09:32:42 +08:00
|
|
|
// CHECK: @_ZTIPKn = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKn = hidden constant
|
2016-02-03 09:32:42 +08:00
|
|
|
|
|
|
|
// unsigned __int128
|
|
|
|
// CHECK: @_ZTIo = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIo = hidden constant
|
2016-02-03 09:32:42 +08:00
|
|
|
// CHECK: @_ZTIPo = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPo = hidden constant
|
2016-02-03 09:32:42 +08:00
|
|
|
// CHECK: @_ZTIPKo = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKo = hidden constant
|
2016-02-03 09:32:42 +08:00
|
|
|
|
2014-04-17 10:26:26 +08:00
|
|
|
// half
|
|
|
|
// CHECK: @_ZTIDh = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIDh = hidden constant
|
2014-04-17 10:26:26 +08:00
|
|
|
// CHECK: @_ZTIPDh = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPDh = hidden constant
|
2014-04-17 10:26:26 +08:00
|
|
|
// CHECK: @_ZTIPKDh = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKDh = hidden constant
|
2014-04-17 10:26:26 +08:00
|
|
|
|
2010-11-04 13:28:09 +08:00
|
|
|
// float
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIf = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIf = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPf = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPf = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKf = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKf = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// double
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTId = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTId = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPd = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPd = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKd = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKd = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// long double
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIe = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIe = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPe = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPe = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKe = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKe = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// char16_t
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIDs = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIDs = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPDs = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPDs = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKDs = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKDs = hidden constant
|
2010-11-04 13:28:09 +08:00
|
|
|
|
|
|
|
// char32_t
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIDi = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIDi = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPDi = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPDi = hidden constant
|
2014-02-08 11:26:05 +08:00
|
|
|
// CHECK: @_ZTIPKDi = constant
|
2018-07-24 08:43:47 +08:00
|
|
|
// CHECK-HIDDEN: @_ZTIPKDi = hidden constant
|