File: rtti-fundamental.cpp

package info (click to toggle)
llvm-toolchain-3.4 1%3A3.4.2-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 253,236 kB
  • ctags: 276,203
  • sloc: cpp: 1,665,580; ansic: 298,647; asm: 206,157; objc: 84,350; python: 73,119; sh: 23,466; perl: 5,679; makefile: 5,542; ml: 5,250; pascal: 2,467; lisp: 1,420; xml: 679; cs: 236; csh: 117
file content (116 lines) | stat: -rw-r--r-- 3,126 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// 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 {
    virtual ~__fundamental_type_info();
  };

  __fundamental_type_info::~__fundamental_type_info() { }
}

// void
// CHECK: @_ZTIv = unnamed_addr constant
// CHECK: @_ZTIPv = unnamed_addr constant
// CHECK: @_ZTIPKv = unnamed_addr constant

// std::nullptr_t
// CHECK: @_ZTIDn = unnamed_addr constant
// CHECK: @_ZTIPDn = unnamed_addr constant
// CHECK: @_ZTIPKDn = unnamed_addr constant

// bool
// CHECK: @_ZTIb = unnamed_addr constant
// CHECK: @_ZTIPb = unnamed_addr constant
// CHECK: @_ZTIPKb = unnamed_addr constant

// wchar_t
// CHECK: @_ZTIw = unnamed_addr constant
// CHECK: @_ZTIPw = unnamed_addr constant
// CHECK: @_ZTIPKw = unnamed_addr constant

// char
// CHECK: @_ZTIc = unnamed_addr constant
// CHECK: @_ZTIPc = unnamed_addr constant
// CHECK: @_ZTIPKc = unnamed_addr constant

// unsigned char
// CHECK: @_ZTIh = unnamed_addr constant
// CHECK: @_ZTIPh = unnamed_addr constant
// CHECK: @_ZTIPKh = unnamed_addr constant

// signed char
// CHECK: @_ZTIa = unnamed_addr constant
// CHECK: @_ZTIPa = unnamed_addr constant
// CHECK: @_ZTIPKa = unnamed_addr constant

// short
// CHECK: @_ZTIs = unnamed_addr constant
// CHECK: @_ZTIPs = unnamed_addr constant
// CHECK: @_ZTIPKs = unnamed_addr constant

// unsigned short
// CHECK: @_ZTIt = unnamed_addr constant
// CHECK: @_ZTIPt = unnamed_addr constant
// CHECK: @_ZTIPKt = unnamed_addr constant

// int
// CHECK: @_ZTIi = unnamed_addr constant
// CHECK: @_ZTIPi = unnamed_addr constant
// CHECK: @_ZTIPKi = unnamed_addr constant

// unsigned int
// CHECK: @_ZTIj = unnamed_addr constant
// CHECK: @_ZTIPj = unnamed_addr constant
// CHECK: @_ZTIPKj = unnamed_addr constant

// long
// CHECK: @_ZTIl = unnamed_addr constant
// CHECK: @_ZTIPl = unnamed_addr constant
// CHECK: @_ZTIPKl = unnamed_addr constant

// unsigned long
// CHECK: @_ZTIm = unnamed_addr constant
// CHECK: @_ZTIPm = unnamed_addr constant
// CHECK: @_ZTIPKm = unnamed_addr constant

// long long
// CHECK: @_ZTIx = unnamed_addr constant
// CHECK: @_ZTIPx = unnamed_addr constant
// CHECK: @_ZTIPKx = unnamed_addr constant

// unsigned long long
// CHECK: @_ZTIy = unnamed_addr constant
// CHECK: @_ZTIPy = unnamed_addr constant
// CHECK: @_ZTIPKy = unnamed_addr constant

// float
// CHECK: @_ZTIf = unnamed_addr constant
// CHECK: @_ZTIPf = unnamed_addr constant
// CHECK: @_ZTIPKf = unnamed_addr constant

// double
// CHECK: @_ZTId = unnamed_addr constant
// CHECK: @_ZTIPd = unnamed_addr constant
// CHECK: @_ZTIPKd = unnamed_addr constant

// long double
// CHECK: @_ZTIe = unnamed_addr constant
// CHECK: @_ZTIPe = unnamed_addr constant
// CHECK: @_ZTIPKe = unnamed_addr constant

// char16_t
// CHECK: @_ZTIDs = unnamed_addr constant
// CHECK: @_ZTIPDs = unnamed_addr constant
// CHECK: @_ZTIPKDs = unnamed_addr constant

// char32_t
// CHECK: @_ZTIDi = unnamed_addr constant
// CHECK: @_ZTIPDi = unnamed_addr constant
// CHECK: @_ZTIPKDi = unnamed_addr constant