|
34 | 34 | #-----| Type = unsigned long |
35 | 35 | #-----| 1: p#1 |
36 | 36 | #-----| Type = align_val_t |
| 37 | +bad_asts.cpp: |
| 38 | +# 5| Bad::S::operator=(S &&) -> S & |
| 39 | +# 5| params: |
| 40 | +#-----| 0: p#0 |
| 41 | +#-----| Type = S && |
| 42 | +# 5| Bad::S::operator=(const S &) -> S & |
| 43 | +# 5| params: |
| 44 | +#-----| 0: p#0 |
| 45 | +#-----| Type = const S & |
| 46 | +# 9| Bad::S::MemberFunction(int) -> int |
| 47 | +# 9| params: |
| 48 | +# 9| 0: y |
| 49 | +# 9| Type = int |
| 50 | +# 9| body: { ... } |
| 51 | +# 10| 0: return ... |
| 52 | +# 10| 0: ... + ... |
| 53 | +# 10| Type = int |
| 54 | +# 10| ValueCategory = prvalue |
| 55 | +# 10| 0: ... + ... |
| 56 | +# 10| Type = int |
| 57 | +# 10| ValueCategory = prvalue |
| 58 | +# 10| 0: Unknown literal |
| 59 | +# 10| Type = int |
| 60 | +# 10| ValueCategory = prvalue |
| 61 | +# 10| 1: x |
| 62 | +# 10| Type = int |
| 63 | +# 10| ValueCategory = prvalue(load) |
| 64 | +#-----| -1: this |
| 65 | +#-----| Type = S * |
| 66 | +#-----| ValueCategory = prvalue(load) |
| 67 | +# 10| 1: y |
| 68 | +# 10| Type = int |
| 69 | +# 10| ValueCategory = prvalue(load) |
| 70 | +# 9| MemberFunction(int) -> int |
| 71 | +# 9| params: |
| 72 | +# 9| 0: y |
| 73 | +# 9| Type = int |
| 74 | +# 9| body: { ... } |
| 75 | +# 10| 0: return ... |
| 76 | +# 10| 0: ... + ... |
| 77 | +# 10| Type = int |
| 78 | +# 10| ValueCategory = prvalue |
| 79 | +# 10| 0: ... + ... |
| 80 | +# 10| Type = int |
| 81 | +# 10| ValueCategory = prvalue |
| 82 | +# 10| 0: 6 |
| 83 | +# 10| Type = int |
| 84 | +# 10| Value = 6 |
| 85 | +# 10| ValueCategory = prvalue |
| 86 | +# 10| 1: x |
| 87 | +# 10| Type = int |
| 88 | +# 10| ValueCategory = prvalue(load) |
| 89 | +#-----| -1: this |
| 90 | +#-----| Type = S * |
| 91 | +#-----| ValueCategory = prvalue(load) |
| 92 | +# 10| 1: y |
| 93 | +# 10| Type = int |
| 94 | +# 10| ValueCategory = prvalue(load) |
| 95 | +# 14| Bad::CallBadMemberFunction() -> void |
| 96 | +# 14| params: |
| 97 | +# 14| body: { ... } |
| 98 | +# 15| 0: declaration |
| 99 | +# 15| 0: definition of s |
| 100 | +# 15| Type = S |
| 101 | +# 15| init: initializer for s |
| 102 | +# 15| expr: {...} |
| 103 | +# 15| Type = S |
| 104 | +# 15| ValueCategory = prvalue |
| 105 | +# 16| 1: ExprStmt |
| 106 | +# 16| 0: call to MemberFunction |
| 107 | +# 16| Type = int |
| 108 | +# 16| ValueCategory = prvalue |
| 109 | +# 16| -1: s |
| 110 | +# 16| Type = S |
| 111 | +# 16| ValueCategory = lvalue |
| 112 | +# 16| 0: 1 |
| 113 | +# 16| Type = int |
| 114 | +# 16| Value = 1 |
| 115 | +# 16| ValueCategory = prvalue |
| 116 | +# 17| 2: return ... |
| 117 | +# 19| Bad::Point::Point(Point &&) -> void |
| 118 | +# 19| params: |
| 119 | +#-----| 0: p#0 |
| 120 | +#-----| Type = Point && |
| 121 | +# 19| Bad::Point::Point(const Point &) -> void |
| 122 | +# 19| params: |
| 123 | +#-----| 0: p#0 |
| 124 | +#-----| Type = const Point & |
| 125 | +# 19| initializations: |
| 126 | +# 19| 0: constructor init of field x |
| 127 | +# 19| Type = int |
| 128 | +# 19| ValueCategory = prvalue |
| 129 | +# 19| 0: Unknown literal |
| 130 | +# 19| Type = int |
| 131 | +# 19| ValueCategory = prvalue |
| 132 | +# 19| 1: constructor init of field y |
| 133 | +# 19| Type = int |
| 134 | +# 19| ValueCategory = prvalue |
| 135 | +# 19| 0: Unknown literal |
| 136 | +# 19| Type = int |
| 137 | +# 19| ValueCategory = prvalue |
| 138 | +# 19| body: { ... } |
| 139 | +# 19| 0: return ... |
| 140 | +# 19| Bad::Point::operator=(Point &&) -> Point & |
| 141 | +# 19| params: |
| 142 | +#-----| 0: p#0 |
| 143 | +#-----| Type = Point && |
| 144 | +# 19| Bad::Point::operator=(const Point &) -> Point & |
| 145 | +# 19| params: |
| 146 | +#-----| 0: p#0 |
| 147 | +#-----| Type = const Point & |
| 148 | +# 22| Bad::Point::Point() -> void |
| 149 | +# 22| params: |
| 150 | +# 22| initializations: |
| 151 | +# 22| body: { ... } |
| 152 | +# 23| 0: return ... |
| 153 | +# 26| Bad::CallCopyConstructor(const Point &) -> void |
| 154 | +# 26| params: |
| 155 | +# 26| 0: a |
| 156 | +# 26| Type = const Point & |
| 157 | +# 26| body: { ... } |
| 158 | +# 27| 0: declaration |
| 159 | +# 27| 0: definition of b |
| 160 | +# 27| Type = Point |
| 161 | +# 27| init: initializer for b |
| 162 | +# 27| expr: (Point)... |
| 163 | +# 27| Conversion = glvalue conversion |
| 164 | +# 27| Type = Point |
| 165 | +# 27| ValueCategory = prvalue(load) |
| 166 | +# 27| expr: (reference dereference) |
| 167 | +# 27| Type = const Point |
| 168 | +# 27| ValueCategory = lvalue |
| 169 | +# 27| expr: a |
| 170 | +# 27| Type = const Point & |
| 171 | +# 27| ValueCategory = prvalue(load) |
| 172 | +# 28| 1: return ... |
37 | 173 | ir.cpp: |
38 | 174 | # 1| Constants() -> void |
39 | 175 | # 1| params: |
|
0 commit comments