| ... | ... | @@ -150,18 +150,20 @@ pub fn addCases(ctx: *TestContext) !void { |
| 150 | 150 | \\}) |
| 151 | 151 | \\ |
| 152 | 152 | \\@a = fn(@fnty, { |
| 153 | | \\ %0 = call(@b, []) |
| 153 | \\ %0 = call(@c, []) |
| 154 | 154 | \\ %1 = returnvoid() |
| 155 | 155 | \\}) |
| 156 | 156 | \\ |
| 157 | | \\@b = fn(@fnty, { |
| 158 | | \\ %9 = compileerror("message") |
| 157 | \\@b = str("message") |
| 158 | \\ |
| 159 | \\@c = fn(@fnty, { |
| 160 | \\ %9 = compileerror(@b) |
| 159 | 161 | \\ %0 = call(@a, []) |
| 160 | 162 | \\ %1 = returnvoid() |
| 161 | 163 | \\}) |
| 162 | 164 | , |
| 163 | 165 | &[_][]const u8{ |
| 164 | | ":18:21: error: message", |
| 166 | ":20:21: error: message", |
| 165 | 167 | }, |
| 166 | 168 | ); |
| 167 | 169 | // Now we remove the call to `a`. `a` and `b` form a cycle, but no entry points are |
| ... | ... | @@ -179,20 +181,22 @@ pub fn addCases(ctx: *TestContext) !void { |
| 179 | 181 | \\}) |
| 180 | 182 | \\ |
| 181 | 183 | \\@a = fn(@fnty, { |
| 182 | | \\ %0 = call(@b, []) |
| 184 | \\ %0 = call(@c, []) |
| 183 | 185 | \\ %1 = returnvoid() |
| 184 | 186 | \\}) |
| 185 | 187 | \\ |
| 186 | | \\@b = fn(@fnty, { |
| 187 | | \\ %9 = compileerror("message") |
| 188 | \\@b = str("message") |
| 189 | \\ |
| 190 | \\@c = fn(@fnty, { |
| 191 | \\ %9 = compileerror(@b) |
| 188 | 192 | \\ %0 = call(@a, []) |
| 189 | 193 | \\ %1 = returnvoid() |
| 190 | 194 | \\}) |
| 191 | 195 | , |
| 192 | 196 | \\@void = primitive(void) |
| 193 | 197 | \\@fnty = fntype([], @void, cc=C) |
| 194 | | \\@9 = declref("9__anon_2") |
| 195 | | \\@9__anon_2 = str("entry") |
| 198 | \\@9 = declref("9__anon_3") |
| 199 | \\@9__anon_3 = str("entry") |
| 196 | 200 | \\@unnamed$4 = str("entry") |
| 197 | 201 | \\@unnamed$5 = export(@unnamed$4, "entry") |
| 198 | 202 | \\@11 = primitive(void_value) |