blob: 7f80d99b70e1f7c38cfca8136ac0a0f8dda03a3b [file] [log] [blame]
Rafael Espindolad0c89a42010-03-27 02:52:40 +00001// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
2
3#include <typeinfo>
4
5std::type_info foo() {
6 return typeid(void);
7}
8
9namespace __cxxabiv1 {
10 struct __fundamental_type_info {
Douglas Gregor1e201b42010-04-08 15:52:03 +000011 virtual ~__fundamental_type_info();
Rafael Espindolad0c89a42010-03-27 02:52:40 +000012 };
Douglas Gregor1e201b42010-04-08 15:52:03 +000013
14 __fundamental_type_info::~__fundamental_type_info() { }
Rafael Espindolad0c89a42010-03-27 02:52:40 +000015}
16
John McCallcbfe5022010-08-04 08:34:44 +000017// CHECK: @_ZTIv = constant
18// CHECK: @_ZTIPv = constant
19// CHECK: @_ZTIPKv = constant
20// CHECK: @_ZTIDi = constant
21// CHECK: @_ZTIPDi = constant
22// CHECK: @_ZTIPKDi = constant
23// CHECK: @_ZTIDs = constant
24// CHECK: @_ZTIPDs = constant
25// CHECK: @_ZTIPKDs = constant
26// CHECK: @_ZTIy = constant
27// CHECK: @_ZTIPy = constant
28// CHECK: @_ZTIPKy = constant
29// CHECK: @_ZTIx = constant
30// CHECK: @_ZTIPx = constant
31// CHECK: @_ZTIPKx = constant
32// CHECK: @_ZTIw = constant
33// CHECK: @_ZTIPw = constant
34// CHECK: @_ZTIPKw = constant
35// CHECK: @_ZTIt = constant
36// CHECK: @_ZTIPt = constant
37// CHECK: @_ZTIPKt = constant
38// CHECK: @_ZTIs = constant
39// CHECK: @_ZTIPs = constant
40// CHECK: @_ZTIPKs = constant
41// CHECK: @_ZTIm = constant
42// CHECK: @_ZTIPm = constant
43// CHECK: @_ZTIPKm = constant
44// CHECK: @_ZTIl = constant
45// CHECK: @_ZTIPl = constant
46// CHECK: @_ZTIPKl = constant
47// CHECK: @_ZTIj = constant
48// CHECK: @_ZTIPj = constant
49// CHECK: @_ZTIPKj = constant
50// CHECK: @_ZTIi = constant
51// CHECK: @_ZTIPi = constant
52// CHECK: @_ZTIPKi = constant
53// CHECK: @_ZTIh = constant
54// CHECK: @_ZTIPh = constant
55// CHECK: @_ZTIPKh = constant
56// CHECK: @_ZTIf = constant
57// CHECK: @_ZTIPf = constant
58// CHECK: @_ZTIPKf = constant
59// CHECK: @_ZTIe = constant
60// CHECK: @_ZTIPe = constant
61// CHECK: @_ZTIPKe = constant
62// CHECK: @_ZTId = constant
63// CHECK: @_ZTIPd = constant
64// CHECK: @_ZTIPKd = constant
65// CHECK: @_ZTIc = constant
66// CHECK: @_ZTIPc = constant
67// CHECK: @_ZTIPKc = constant
68// CHECK: @_ZTIb = constant
69// CHECK: @_ZTIPb = constant
70// CHECK: @_ZTIPKb = constant
71// CHECK: @_ZTIa = constant
72// CHECK: @_ZTIPa = constant
73// CHECK: @_ZTIPKa = constant