| ... | @@ -114,7 +114,7 @@ import "syscall.zig"; | ... | @@ -114,7 +114,7 @@ import "syscall.zig"; |
| 114 | fn empty_function_1() => {} | 114 | fn empty_function_1() => {} |
| 115 | fn empty_function_2() => { return; } | 115 | fn empty_function_2() => { return; } |
| 116 | | 116 | |
| 117 | pub fn main(args: [][]u8) i32 => { | 117 | pub fn main(args: [][]u8) %void => { |
| 118 | empty_function_1(); | 118 | empty_function_1(); |
| 119 | empty_function_2(); | 119 | empty_function_2(); |
| 120 | this_is_a_function(); | 120 | this_is_a_function(); |
| ... | @@ -136,9 +136,8 @@ fn another_function() => {} | ... | @@ -136,9 +136,8 @@ fn another_function() => {} |
| 136 | | 136 | |
| 137 | /// this is a documentation comment | 137 | /// this is a documentation comment |
| 138 | /// doc comment line 2 | 138 | /// doc comment line 2 |
| 139 | pub fn main(args: [][]u8) i32 => { | 139 | pub fn main(args: [][]u8) %void => { |
| 140 | print_str(/* mid-line comment /* nested */ */ "OK\n"); | 140 | print_str(/* mid-line comment /* nested */ */ "OK\n"); |
| 141 | return 0; | | |
| 142 | } | 141 | } |
| 143 | )SOURCE", "OK\n"); | 142 | )SOURCE", "OK\n"); |
| 144 | | 143 | |
| ... | @@ -147,10 +146,9 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -147,10 +146,9 @@ pub fn main(args: [][]u8) i32 => { |
| 147 | import "std.zig"; | 146 | import "std.zig"; |
| 148 | import "foo.zig"; | 147 | import "foo.zig"; |
| 149 | | 148 | |
| 150 | pub fn main(args: [][]u8) i32 => { | 149 | pub fn main(args: [][]u8) %void => { |
| 151 | private_function(); | 150 | private_function(); |
| 152 | print_str("OK 2\n"); | 151 | print_str("OK 2\n"); |
| 153 | return 0; | | |
| 154 | } | 152 | } |
| 155 | | 153 | |
| 156 | fn private_function() => { | 154 | fn private_function() => { |
| ... | @@ -178,10 +176,9 @@ pub fn print_text() => { | ... | @@ -178,10 +176,9 @@ pub fn print_text() => { |
| 178 | import "foo.zig"; | 176 | import "foo.zig"; |
| 179 | import "bar.zig"; | 177 | import "bar.zig"; |
| 180 | | 178 | |
| 181 | pub fn main(args: [][]u8) i32 => { | 179 | pub fn main(args: [][]u8) %void => { |
| 182 | foo_function(); | 180 | foo_function(); |
| 183 | bar_function(); | 181 | bar_function(); |
| 184 | return 0; | | |
| 185 | } | 182 | } |
| 186 | )SOURCE", "OK\nOK\n"); | 183 | )SOURCE", "OK\nOK\n"); |
| 187 | | 184 | |
| ... | @@ -214,7 +211,7 @@ pub fn foo_function() bool => { | ... | @@ -214,7 +211,7 @@ pub fn foo_function() bool => { |
| 214 | add_simple_case("if statements", R"SOURCE( | 211 | add_simple_case("if statements", R"SOURCE( |
| 215 | import "std.zig"; | 212 | import "std.zig"; |
| 216 | | 213 | |
| 217 | pub fn main(args: [][]u8) i32 => { | 214 | pub fn main(args: [][]u8) %void => { |
| 218 | if (1 != 0) { | 215 | if (1 != 0) { |
| 219 | print_str("1 is true\n"); | 216 | print_str("1 is true\n"); |
| 220 | } else { | 217 | } else { |
| ... | @@ -228,7 +225,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -228,7 +225,6 @@ pub fn main(args: [][]u8) i32 => { |
| 228 | if (!(0 != 0)) { | 225 | if (!(0 != 0)) { |
| 229 | print_str("!0 is true\n"); | 226 | print_str("!0 is true\n"); |
| 230 | } | 227 | } |
| 231 | return 0; | | |
| 232 | } | 228 | } |
| 233 | )SOURCE", "1 is true\n!0 is true\n"); | 229 | )SOURCE", "1 is true\n!0 is true\n"); |
| 234 | | 230 | |
| ... | @@ -239,11 +235,10 @@ fn add(a: i32, b: i32) i32 => { | ... | @@ -239,11 +235,10 @@ fn add(a: i32, b: i32) i32 => { |
| 239 | a + b | 235 | a + b |
| 240 | } | 236 | } |
| 241 | | 237 | |
| 242 | pub fn main(args: [][]u8) i32 => { | 238 | pub fn main(args: [][]u8) %void => { |
| 243 | if (add(22, 11) == 33) { | 239 | if (add(22, 11) == 33) { |
| 244 | print_str("pass\n"); | 240 | print_str("pass\n"); |
| 245 | } | 241 | } |
| 246 | return 0; | | |
| 247 | } | 242 | } |
| 248 | )SOURCE", "pass\n"); | 243 | )SOURCE", "pass\n"); |
| 249 | | 244 | |
| ... | @@ -261,41 +256,38 @@ done: | ... | @@ -261,41 +256,38 @@ done: |
| 261 | return; | 256 | return; |
| 262 | } | 257 | } |
| 263 | | 258 | |
| 264 | pub fn main(args: [][]u8) i32 => { | 259 | pub fn main(args: [][]u8) %void => { |
| 265 | loop(3); | 260 | loop(3); |
| 266 | return 0; | | |
| 267 | } | 261 | } |
| 268 | )SOURCE", "loop\nloop\nloop\n"); | 262 | )SOURCE", "loop\nloop\nloop\n"); |
| 269 | | 263 | |
| 270 | add_simple_case("local variables", R"SOURCE( | 264 | add_simple_case("local variables", R"SOURCE( |
| 271 | import "std.zig"; | 265 | import "std.zig"; |
| 272 | | 266 | |
| 273 | pub fn main(args: [][]u8) i32 => { | 267 | pub fn main(args: [][]u8) %void => { |
| 274 | const a : i32 = 1; | 268 | const a : i32 = 1; |
| 275 | const b = i32(2); | 269 | const b = i32(2); |
| 276 | if (a + b == 3) { | 270 | if (a + b == 3) { |
| 277 | print_str("OK\n"); | 271 | print_str("OK\n"); |
| 278 | } | 272 | } |
| 279 | return 0; | | |
| 280 | } | 273 | } |
| 281 | )SOURCE", "OK\n"); | 274 | )SOURCE", "OK\n"); |
| 282 | | 275 | |
| 283 | add_simple_case("bool literals", R"SOURCE( | 276 | add_simple_case("bool literals", R"SOURCE( |
| 284 | import "std.zig"; | 277 | import "std.zig"; |
| 285 | | 278 | |
| 286 | pub fn main(args: [][]u8) i32 => { | 279 | pub fn main(args: [][]u8) %void => { |
| 287 | if (true) { print_str("OK 1\n"); } | 280 | if (true) { print_str("OK 1\n"); } |
| 288 | if (false) { print_str("BAD 1\n"); } | 281 | if (false) { print_str("BAD 1\n"); } |
| 289 | if (!true) { print_str("BAD 2\n"); } | 282 | if (!true) { print_str("BAD 2\n"); } |
| 290 | if (!false) { print_str("OK 2\n"); } | 283 | if (!false) { print_str("OK 2\n"); } |
| 291 | return 0; | | |
| 292 | } | 284 | } |
| 293 | )SOURCE", "OK 1\nOK 2\n"); | 285 | )SOURCE", "OK 1\nOK 2\n"); |
| 294 | | 286 | |
| 295 | add_simple_case("separate block scopes", R"SOURCE( | 287 | add_simple_case("separate block scopes", R"SOURCE( |
| 296 | import "std.zig"; | 288 | import "std.zig"; |
| 297 | | 289 | |
| 298 | pub fn main(args: [][]u8) i32 => { | 290 | pub fn main(args: [][]u8) %void => { |
| 299 | if (true) { | 291 | if (true) { |
| 300 | const no_conflict : i32 = 5; | 292 | const no_conflict : i32 = 5; |
| 301 | if (no_conflict == 5) { print_str("OK 1\n"); } | 293 | if (no_conflict == 5) { print_str("OK 1\n"); } |
| ... | @@ -306,16 +298,14 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -306,16 +298,14 @@ pub fn main(args: [][]u8) i32 => { |
| 306 | no_conflict | 298 | no_conflict |
| 307 | }; | 299 | }; |
| 308 | if (c == 10) { print_str("OK 2\n"); } | 300 | if (c == 10) { print_str("OK 2\n"); } |
| 309 | return 0; | | |
| 310 | } | 301 | } |
| 311 | )SOURCE", "OK 1\nOK 2\n"); | 302 | )SOURCE", "OK 1\nOK 2\n"); |
| 312 | | 303 | |
| 313 | add_simple_case("void parameters", R"SOURCE( | 304 | add_simple_case("void parameters", R"SOURCE( |
| 314 | import "std.zig"; | 305 | import "std.zig"; |
| 315 | | 306 | |
| 316 | pub fn main(args: [][]u8) i32 => { | 307 | pub fn main(args: [][]u8) %void => { |
| 317 | void_fun(1, void{}, 2); | 308 | void_fun(1, void{}, 2); |
| 318 | return 0; | | |
| 319 | } | 309 | } |
| 320 | | 310 | |
| 321 | fn void_fun(a : i32, b : void, c : i32) => { | 311 | fn void_fun(a : i32, b : void, c : i32) => { |
| ... | @@ -333,7 +323,7 @@ struct Foo { | ... | @@ -333,7 +323,7 @@ struct Foo { |
| 333 | b : i32, | 323 | b : i32, |
| 334 | c : void, | 324 | c : void, |
| 335 | } | 325 | } |
| 336 | pub fn main(args: [][]u8) i32 => { | 326 | pub fn main(args: [][]u8) %void => { |
| 337 | const foo = Foo { | 327 | const foo = Foo { |
| 338 | .a = void{}, | 328 | .a = void{}, |
| 339 | .b = 1, | 329 | .b = 1, |
| ... | @@ -346,7 +336,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -346,7 +336,6 @@ pub fn main(args: [][]u8) i32 => { |
| 346 | print_str("BAD\n"); | 336 | print_str("BAD\n"); |
| 347 | } | 337 | } |
| 348 | print_str("OK\n"); | 338 | print_str("OK\n"); |
| 349 | return 0; | | |
| 350 | } | 339 | } |
| 351 | | 340 | |
| 352 | )SOURCE", "OK\n"); | 341 | )SOURCE", "OK\n"); |
| ... | @@ -354,7 +343,7 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -354,7 +343,7 @@ pub fn main(args: [][]u8) i32 => { |
| 354 | add_simple_case("void arrays", R"SOURCE( | 343 | add_simple_case("void arrays", R"SOURCE( |
| 355 | import "std.zig"; | 344 | import "std.zig"; |
| 356 | | 345 | |
| 357 | pub fn main(args: [][]u8) i32 => { | 346 | pub fn main(args: [][]u8) %void => { |
| 358 | var array: [4]void; | 347 | var array: [4]void; |
| 359 | array[0] = void{}; | 348 | array[0] = void{}; |
| 360 | array[1] = array[2]; | 349 | array[1] = array[2]; |
| ... | @@ -365,7 +354,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -365,7 +354,6 @@ pub fn main(args: [][]u8) i32 => { |
| 365 | print_str("BAD\n"); | 354 | print_str("BAD\n"); |
| 366 | } | 355 | } |
| 367 | print_str("OK\n"); | 356 | print_str("OK\n"); |
| 368 | return 0; | | |
| 369 | } | 357 | } |
| 370 | )SOURCE", "OK\n"); | 358 | )SOURCE", "OK\n"); |
| 371 | | 359 | |
| ... | @@ -373,27 +361,22 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -373,27 +361,22 @@ pub fn main(args: [][]u8) i32 => { |
| 373 | add_simple_case("mutable local variables", R"SOURCE( | 361 | add_simple_case("mutable local variables", R"SOURCE( |
| 374 | import "std.zig"; | 362 | import "std.zig"; |
| 375 | | 363 | |
| 376 | pub fn main(args: [][]u8) i32 => { | 364 | pub fn main(args: [][]u8) %void => { |
| 377 | var zero : i32 = 0; | 365 | var zero : i32 = 0; |
| 378 | if (zero == 0) { print_str("zero\n"); } | 366 | if (zero == 0) { print_str("zero\n"); } |
| 379 | | 367 | |
| 380 | var i = i32(0); | 368 | var i = i32(0); |
| 381 | loop_start: | 369 | while (i != 3) { |
| 382 | if (i == 3) { | 370 | print_str("loop\n"); |
| 383 | goto done; | 371 | i += 1; |
| 384 | } | 372 | } |
| 385 | print_str("loop\n"); | | |
| 386 | i = i + 1; | | |
| 387 | goto loop_start; | | |
| 388 | done: | | |
| 389 | return 0; | | |
| 390 | } | 373 | } |
| 391 | )SOURCE", "zero\nloop\nloop\nloop\n"); | 374 | )SOURCE", "zero\nloop\nloop\nloop\n"); |
| 392 | | 375 | |
| 393 | add_simple_case("arrays", R"SOURCE( | 376 | add_simple_case("arrays", R"SOURCE( |
| 394 | import "std.zig"; | 377 | import "std.zig"; |
| 395 | | 378 | |
| 396 | pub fn main(args: [][]u8) i32 => { | 379 | pub fn main(args: [][]u8) %void => { |
| 397 | var array : [5]i32; | 380 | var array : [5]i32; |
| 398 | | 381 | |
| 399 | var i : i32 = 0; | 382 | var i : i32 = 0; |
| ... | @@ -417,8 +400,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -417,8 +400,6 @@ pub fn main(args: [][]u8) i32 => { |
| 417 | if (get_array_len(array) != 5) { | 400 | if (get_array_len(array) != 5) { |
| 418 | print_str("BAD\n"); | 401 | print_str("BAD\n"); |
| 419 | } | 402 | } |
| 420 | | | |
| 421 | return 0; | | |
| 422 | } | 403 | } |
| 423 | fn get_array_len(a: []i32) isize => { | 404 | fn get_array_len(a: []i32) isize => { |
| 424 | a.len | 405 | a.len |
| ... | @@ -429,9 +410,8 @@ fn get_array_len(a: []i32) isize => { | ... | @@ -429,9 +410,8 @@ fn get_array_len(a: []i32) isize => { |
| 429 | add_simple_case("hello world without libc", R"SOURCE( | 410 | add_simple_case("hello world without libc", R"SOURCE( |
| 430 | import "std.zig"; | 411 | import "std.zig"; |
| 431 | | 412 | |
| 432 | pub fn main(args: [][]u8) i32 => { | 413 | pub fn main(args: [][]u8) %void => { |
| 433 | print_str("Hello, world!\n"); | 414 | print_str("Hello, world!\n"); |
| 434 | return 0; | | |
| 435 | } | 415 | } |
| 436 | )SOURCE", "Hello, world!\n"); | 416 | )SOURCE", "Hello, world!\n"); |
| 437 | | 417 | |
| ... | @@ -439,7 +419,7 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -439,7 +419,7 @@ pub fn main(args: [][]u8) i32 => { |
| 439 | add_simple_case("a + b + c", R"SOURCE( | 419 | add_simple_case("a + b + c", R"SOURCE( |
| 440 | import "std.zig"; | 420 | import "std.zig"; |
| 441 | | 421 | |
| 442 | pub fn main(args: [][]u8) i32 => { | 422 | pub fn main(args: [][]u8) %void => { |
| 443 | if (false || false || false) { print_str("BAD 1\n"); } | 423 | if (false || false || false) { print_str("BAD 1\n"); } |
| 444 | if (true && true && false) { print_str("BAD 2\n"); } | 424 | if (true && true && false) { print_str("BAD 2\n"); } |
| 445 | if (1 | 2 | 4 != 7) { print_str("BAD 3\n"); } | 425 | if (1 | 2 | 4 != 7) { print_str("BAD 3\n"); } |
| ... | @@ -454,14 +434,13 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -454,14 +434,13 @@ pub fn main(args: [][]u8) i32 => { |
| 454 | if (i32(7) != --(i32(7))) { print_str("BAD 12\n"); } | 434 | if (i32(7) != --(i32(7))) { print_str("BAD 12\n"); } |
| 455 | | 435 | |
| 456 | print_str("OK\n"); | 436 | print_str("OK\n"); |
| 457 | return 0; | | |
| 458 | } | 437 | } |
| 459 | )SOURCE", "OK\n"); | 438 | )SOURCE", "OK\n"); |
| 460 | | 439 | |
| 461 | add_simple_case("short circuit", R"SOURCE( | 440 | add_simple_case("short circuit", R"SOURCE( |
| 462 | import "std.zig"; | 441 | import "std.zig"; |
| 463 | | 442 | |
| 464 | pub fn main(args: [][]u8) i32 => { | 443 | pub fn main(args: [][]u8) %void => { |
| 465 | if (true || { print_str("BAD 1\n"); false }) { | 444 | if (true || { print_str("BAD 1\n"); false }) { |
| 466 | print_str("OK 1\n"); | 445 | print_str("OK 1\n"); |
| 467 | } | 446 | } |
| ... | @@ -476,15 +455,13 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -476,15 +455,13 @@ pub fn main(args: [][]u8) i32 => { |
| 476 | } else { | 455 | } else { |
| 477 | print_str("OK 4\n"); | 456 | print_str("OK 4\n"); |
| 478 | } | 457 | } |
| 479 | | | |
| 480 | return 0; | | |
| 481 | } | 458 | } |
| 482 | )SOURCE", "OK 1\nOK 2\nOK 3\nOK 4\n"); | 459 | )SOURCE", "OK 1\nOK 2\nOK 3\nOK 4\n"); |
| 483 | | 460 | |
| 484 | add_simple_case("modify operators", R"SOURCE( | 461 | add_simple_case("modify operators", R"SOURCE( |
| 485 | import "std.zig"; | 462 | import "std.zig"; |
| 486 | | 463 | |
| 487 | pub fn main(args: [][]u8) i32 => { | 464 | pub fn main(args: [][]u8) %void => { |
| 488 | var i : i32 = 0; | 465 | var i : i32 = 0; |
| 489 | i += 5; if (i != 5) { print_str("BAD +=\n"); } | 466 | i += 5; if (i != 5) { print_str("BAD +=\n"); } |
| 490 | i -= 2; if (i != 3) { print_str("BAD -=\n"); } | 467 | i -= 2; if (i != 3) { print_str("BAD -=\n"); } |
| ... | @@ -500,7 +477,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -500,7 +477,6 @@ pub fn main(args: [][]u8) i32 => { |
| 500 | i |= 3; if (i != 7) { print_str("BAD |=\n"); } | 477 | i |= 3; if (i != 7) { print_str("BAD |=\n"); } |
| 501 | | 478 | |
| 502 | print_str("OK\n"); | 479 | print_str("OK\n"); |
| 503 | return 0; | | |
| 504 | } | 480 | } |
| 505 | )SOURCE", "OK\n"); | 481 | )SOURCE", "OK\n"); |
| 506 | | 482 | |
| ... | @@ -636,7 +612,7 @@ export fn main(argc: i32, argv: &&u8) i32 => { | ... | @@ -636,7 +612,7 @@ export fn main(argc: i32, argv: &&u8) i32 => { |
| 636 | add_simple_case("structs", R"SOURCE( | 612 | add_simple_case("structs", R"SOURCE( |
| 637 | import "std.zig"; | 613 | import "std.zig"; |
| 638 | | 614 | |
| 639 | pub fn main(args: [][]u8) i32 => { | 615 | pub fn main(args: [][]u8) %void => { |
| 640 | var foo : Foo; | 616 | var foo : Foo; |
| 641 | @memset(&foo, 0, @sizeof(Foo)); | 617 | @memset(&foo, 0, @sizeof(Foo)); |
| 642 | foo.a += 1; | 618 | foo.a += 1; |
| ... | @@ -650,7 +626,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -650,7 +626,6 @@ pub fn main(args: [][]u8) i32 => { |
| 650 | test_byval_assign(); | 626 | test_byval_assign(); |
| 651 | test_initializer(); | 627 | test_initializer(); |
| 652 | print_str("OK\n"); | 628 | print_str("OK\n"); |
| 653 | return 0; | | |
| 654 | } | 629 | } |
| 655 | struct Foo { | 630 | struct Foo { |
| 656 | a : i32, | 631 | a : i32, |
| ... | @@ -711,23 +686,25 @@ import "std.zig"; | ... | @@ -711,23 +686,25 @@ import "std.zig"; |
| 711 | const g1 : i32 = 1233 + 1; | 686 | const g1 : i32 = 1233 + 1; |
| 712 | var g2 : i32 = 0; | 687 | var g2 : i32 = 0; |
| 713 | | 688 | |
| 714 | pub fn main(args: [][]u8) i32 => { | 689 | pub fn main(args: [][]u8) %void => { |
| 715 | if (g2 != 0) { print_str("BAD\n"); } | 690 | if (g2 != 0) { print_str("BAD\n"); } |
| 716 | g2 = g1; | 691 | g2 = g1; |
| 717 | if (g2 != 1234) { print_str("BAD\n"); } | 692 | if (g2 != 1234) { print_str("BAD\n"); } |
| 718 | print_str("OK\n"); | 693 | print_str("OK\n"); |
| 719 | return 0; | | |
| 720 | } | 694 | } |
| 721 | )SOURCE", "OK\n"); | 695 | )SOURCE", "OK\n"); |
| 722 | | 696 | |
| 723 | add_simple_case("while loop", R"SOURCE( | 697 | add_simple_case("while loop", R"SOURCE( |
| 724 | import "std.zig"; | 698 | import "std.zig"; |
| 725 | pub fn main(args: [][]u8) i32 => { | 699 | pub fn main(args: [][]u8) %void => { |
| 726 | var i : i32 = 0; | 700 | var i : i32 = 0; |
| 727 | while (i < 4) { | 701 | while (i < 4) { |
| 728 | print_str("loop\n"); | 702 | print_str("loop\n"); |
| 729 | i += 1; | 703 | i += 1; |
| 730 | } | 704 | } |
| | 705 | g(); |
| | 706 | } |
| | 707 | fn g() i32 => { |
| 731 | return f(); | 708 | return f(); |
| 732 | } | 709 | } |
| 733 | fn f() i32 => { | 710 | fn f() i32 => { |
| ... | @@ -739,7 +716,7 @@ fn f() i32 => { | ... | @@ -739,7 +716,7 @@ fn f() i32 => { |
| 739 | | 716 | |
| 740 | add_simple_case("continue and break", R"SOURCE( | 717 | add_simple_case("continue and break", R"SOURCE( |
| 741 | import "std.zig"; | 718 | import "std.zig"; |
| 742 | pub fn main(args: [][]u8) i32 => { | 719 | pub fn main(args: [][]u8) %void => { |
| 743 | var i : i32 = 0; | 720 | var i : i32 = 0; |
| 744 | while (true) { | 721 | while (true) { |
| 745 | print_str("loop\n"); | 722 | print_str("loop\n"); |
| ... | @@ -749,13 +726,12 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -749,13 +726,12 @@ pub fn main(args: [][]u8) i32 => { |
| 749 | } | 726 | } |
| 750 | break; | 727 | break; |
| 751 | } | 728 | } |
| 752 | return 0; | | |
| 753 | } | 729 | } |
| 754 | )SOURCE", "loop\nloop\nloop\nloop\n"); | 730 | )SOURCE", "loop\nloop\nloop\nloop\n"); |
| 755 | | 731 | |
| 756 | add_simple_case("maybe type", R"SOURCE( | 732 | add_simple_case("maybe type", R"SOURCE( |
| 757 | import "std.zig"; | 733 | import "std.zig"; |
| 758 | pub fn main(args: [][]u8) i32 => { | 734 | pub fn main(args: [][]u8) %void => { |
| 759 | const x : ?bool = true; | 735 | const x : ?bool = true; |
| 760 | | 736 | |
| 761 | if (const y ?= x) { | 737 | if (const y ?= x) { |
| ... | @@ -783,19 +759,16 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -783,19 +759,16 @@ pub fn main(args: [][]u8) i32 => { |
| 783 | if (num != 13) { | 759 | if (num != 13) { |
| 784 | print_str("BAD\n"); | 760 | print_str("BAD\n"); |
| 785 | } | 761 | } |
| 786 | | | |
| 787 | return 0; | | |
| 788 | } | 762 | } |
| 789 | )SOURCE", "x is true\n"); | 763 | )SOURCE", "x is true\n"); |
| 790 | | 764 | |
| 791 | add_simple_case("implicit cast after unreachable", R"SOURCE( | 765 | add_simple_case("implicit cast after unreachable", R"SOURCE( |
| 792 | import "std.zig"; | 766 | import "std.zig"; |
| 793 | pub fn main(args: [][]u8) i32 => { | 767 | pub fn main(args: [][]u8) %void => { |
| 794 | const x = outer(); | 768 | const x = outer(); |
| 795 | if (x == 1234) { | 769 | if (x == 1234) { |
| 796 | print_str("OK\n"); | 770 | print_str("OK\n"); |
| 797 | } | 771 | } |
| 798 | return 0; | | |
| 799 | } | 772 | } |
| 800 | fn inner() i32 => { 1234 } | 773 | fn inner() i32 => { 1234 } |
| 801 | fn outer() isize => { | 774 | fn outer() isize => { |
| ... | @@ -807,11 +780,10 @@ fn outer() isize => { | ... | @@ -807,11 +780,10 @@ fn outer() isize => { |
| 807 | import "std.zig"; | 780 | import "std.zig"; |
| 808 | const x: u16 = 13; | 781 | const x: u16 = 13; |
| 809 | const z: @typeof(x) = 19; | 782 | const z: @typeof(x) = 19; |
| 810 | pub fn main(args: [][]u8) i32 => { | 783 | pub fn main(args: [][]u8) %void => { |
| 811 | const y: @typeof(x) = 120; | 784 | const y: @typeof(x) = 120; |
| 812 | print_u64(@sizeof(@typeof(y))); | 785 | print_u64(@sizeof(@typeof(y))); |
| 813 | print_str("\n"); | 786 | print_str("\n"); |
| 814 | return 0; | | |
| 815 | } | 787 | } |
| 816 | )SOURCE", "2\n"); | 788 | )SOURCE", "2\n"); |
| 817 | | 789 | |
| ... | @@ -823,20 +795,19 @@ struct Rand { | ... | @@ -823,20 +795,19 @@ struct Rand { |
| 823 | r.seed | 795 | r.seed |
| 824 | } | 796 | } |
| 825 | } | 797 | } |
| 826 | pub fn main(args: [][]u8) i32 => { | 798 | pub fn main(args: [][]u8) %void => { |
| 827 | const r = Rand {.seed = 1234}; | 799 | const r = Rand {.seed = 1234}; |
| 828 | if (r.get_seed() != 1234) { | 800 | if (r.get_seed() != 1234) { |
| 829 | print_str("BAD seed\n"); | 801 | print_str("BAD seed\n"); |
| 830 | } | 802 | } |
| 831 | print_str("OK\n"); | 803 | print_str("OK\n"); |
| 832 | return 0; | | |
| 833 | } | 804 | } |
| 834 | )SOURCE", "OK\n"); | 805 | )SOURCE", "OK\n"); |
| 835 | | 806 | |
| 836 | add_simple_case("pointer dereferencing", R"SOURCE( | 807 | add_simple_case("pointer dereferencing", R"SOURCE( |
| 837 | import "std.zig"; | 808 | import "std.zig"; |
| 838 | | 809 | |
| 839 | pub fn main(args: [][]u8) i32 => { | 810 | pub fn main(args: [][]u8) %void => { |
| 840 | var x = i32(3); | 811 | var x = i32(3); |
| 841 | const y = &x; | 812 | const y = &x; |
| 842 | | 813 | |
| ... | @@ -849,7 +820,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -849,7 +820,6 @@ pub fn main(args: [][]u8) i32 => { |
| 849 | print_str("BAD\n"); | 820 | print_str("BAD\n"); |
| 850 | } | 821 | } |
| 851 | print_str("OK\n"); | 822 | print_str("OK\n"); |
| 852 | return 0; | | |
| 853 | } | 823 | } |
| 854 | )SOURCE", "OK\n"); | 824 | )SOURCE", "OK\n"); |
| 855 | | 825 | |
| ... | @@ -858,17 +828,16 @@ import "std.zig"; | ... | @@ -858,17 +828,16 @@ import "std.zig"; |
| 858 | | 828 | |
| 859 | const ARRAY_SIZE : i8 = 20; | 829 | const ARRAY_SIZE : i8 = 20; |
| 860 | | 830 | |
| 861 | pub fn main(args: [][]u8) i32 => { | 831 | pub fn main(args: [][]u8) %void => { |
| 862 | var array : [ARRAY_SIZE]u8; | 832 | var array : [ARRAY_SIZE]u8; |
| 863 | print_u64(@sizeof(@typeof(array))); | 833 | print_u64(@sizeof(@typeof(array))); |
| 864 | print_str("\n"); | 834 | print_str("\n"); |
| 865 | return 0; | | |
| 866 | } | 835 | } |
| 867 | )SOURCE", "20\n"); | 836 | )SOURCE", "20\n"); |
| 868 | | 837 | |
| 869 | add_simple_case("@min_value() and @max_value()", R"SOURCE( | 838 | add_simple_case("@min_value() and @max_value()", R"SOURCE( |
| 870 | import "std.zig"; | 839 | import "std.zig"; |
| 871 | pub fn main(args: [][]u8) i32 => { | 840 | pub fn main(args: [][]u8) %void => { |
| 872 | print_str("max u8: "); | 841 | print_str("max u8: "); |
| 873 | print_u64(@max_value(u8)); | 842 | print_u64(@max_value(u8)); |
| 874 | print_str("\n"); | 843 | print_str("\n"); |
| ... | @@ -932,8 +901,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -932,8 +901,6 @@ pub fn main(args: [][]u8) i32 => { |
| 932 | print_str("min i64: "); | 901 | print_str("min i64: "); |
| 933 | print_i64(@min_value(i64)); | 902 | print_i64(@min_value(i64)); |
| 934 | print_str("\n"); | 903 | print_str("\n"); |
| 935 | | | |
| 936 | return 0; | | |
| 937 | } | 904 | } |
| 938 | )SOURCE", | 905 | )SOURCE", |
| 939 | "max u8: 255\n" | 906 | "max u8: 255\n" |
| ... | @@ -956,7 +923,7 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -956,7 +923,7 @@ pub fn main(args: [][]u8) i32 => { |
| 956 | | 923 | |
| 957 | add_simple_case("slicing", R"SOURCE( | 924 | add_simple_case("slicing", R"SOURCE( |
| 958 | import "std.zig"; | 925 | import "std.zig"; |
| 959 | pub fn main(args: [][]u8) i32 => { | 926 | pub fn main(args: [][]u8) %void => { |
| 960 | var array : [20]i32; | 927 | var array : [20]i32; |
| 961 | | 928 | |
| 962 | array[5] = 1234; | 929 | array[5] = 1234; |
| ... | @@ -977,18 +944,16 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -977,18 +944,16 @@ pub fn main(args: [][]u8) i32 => { |
| 977 | } | 944 | } |
| 978 | | 945 | |
| 979 | print_str("OK\n"); | 946 | print_str("OK\n"); |
| 980 | return 0; | | |
| 981 | } | 947 | } |
| 982 | )SOURCE", "OK\n"); | 948 | )SOURCE", "OK\n"); |
| 983 | | 949 | |
| 984 | | 950 | |
| 985 | add_simple_case("else if expression", R"SOURCE( | 951 | add_simple_case("else if expression", R"SOURCE( |
| 986 | import "std.zig"; | 952 | import "std.zig"; |
| 987 | pub fn main(args: [][]u8) i32 => { | 953 | pub fn main(args: [][]u8) %void => { |
| 988 | if (f(1) == 1) { | 954 | if (f(1) == 1) { |
| 989 | print_str("OK\n"); | 955 | print_str("OK\n"); |
| 990 | } | 956 | } |
| 991 | return 0; | | |
| 992 | } | 957 | } |
| 993 | fn f(c: u8) u8 => { | 958 | fn f(c: u8) u8 => { |
| 994 | if (c == 0) { | 959 | if (c == 0) { |
| ... | @@ -1003,7 +968,7 @@ fn f(c: u8) u8 => { | ... | @@ -1003,7 +968,7 @@ fn f(c: u8) u8 => { |
| 1003 | | 968 | |
| 1004 | add_simple_case("overflow intrinsics", R"SOURCE( | 969 | add_simple_case("overflow intrinsics", R"SOURCE( |
| 1005 | import "std.zig"; | 970 | import "std.zig"; |
| 1006 | pub fn main(args: [][]u8) i32 => { | 971 | pub fn main(args: [][]u8) %void => { |
| 1007 | var result: u8; | 972 | var result: u8; |
| 1008 | if (!@add_with_overflow(u8, 250, 100, &result)) { | 973 | if (!@add_with_overflow(u8, 250, 100, &result)) { |
| 1009 | print_str("BAD\n"); | 974 | print_str("BAD\n"); |
| ... | @@ -1015,13 +980,12 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1015,13 +980,12 @@ pub fn main(args: [][]u8) i32 => { |
| 1015 | print_str("BAD\n"); | 980 | print_str("BAD\n"); |
| 1016 | } | 981 | } |
| 1017 | print_str("OK\n"); | 982 | print_str("OK\n"); |
| 1018 | return 0; | | |
| 1019 | } | 983 | } |
| 1020 | )SOURCE", "OK\n"); | 984 | )SOURCE", "OK\n"); |
| 1021 | | 985 | |
| 1022 | add_simple_case("memcpy and memset intrinsics", R"SOURCE( | 986 | add_simple_case("memcpy and memset intrinsics", R"SOURCE( |
| 1023 | import "std.zig"; | 987 | import "std.zig"; |
| 1024 | pub fn main(args: [][]u8) i32 => { | 988 | pub fn main(args: [][]u8) %void => { |
| 1025 | var foo : [20]u8; | 989 | var foo : [20]u8; |
| 1026 | var bar : [20]u8; | 990 | var bar : [20]u8; |
| 1027 | | 991 | |
| ... | @@ -1033,7 +997,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1033,7 +997,6 @@ pub fn main(args: [][]u8) i32 => { |
| 1033 | } | 997 | } |
| 1034 | | 998 | |
| 1035 | print_str("OK\n"); | 999 | print_str("OK\n"); |
| 1036 | return 0; | | |
| 1037 | } | 1000 | } |
| 1038 | )SOURCE", "OK\n"); | 1001 | )SOURCE", "OK\n"); |
| 1039 | | 1002 | |
| ... | @@ -1042,8 +1005,8 @@ import "std.zig"; | ... | @@ -1042,8 +1005,8 @@ import "std.zig"; |
| 1042 | const z : @typeof(stdin_fileno) = 0; | 1005 | const z : @typeof(stdin_fileno) = 0; |
| 1043 | const x : @typeof(y) = 1234; | 1006 | const x : @typeof(y) = 1234; |
| 1044 | const y : u16 = 5678; | 1007 | const y : u16 = 5678; |
| 1045 | pub fn main(args: [][]u8) i32 => { | 1008 | pub fn main(args: [][]u8) %void => { |
| 1046 | print_ok(x) | 1009 | var x : i32 = print_ok(x); |
| 1047 | } | 1010 | } |
| 1048 | fn print_ok(val: @typeof(x)) @typeof(foo) => { | 1011 | fn print_ok(val: @typeof(x)) @typeof(foo) => { |
| 1049 | print_str("OK\n"); | 1012 | print_str("OK\n"); |
| ... | @@ -1073,7 +1036,7 @@ enum Bar { | ... | @@ -1073,7 +1036,7 @@ enum Bar { |
| 1073 | D, | 1036 | D, |
| 1074 | } | 1037 | } |
| 1075 | | 1038 | |
| 1076 | pub fn main(args: [][]u8) i32 => { | 1039 | pub fn main(args: [][]u8) %void => { |
| 1077 | const foo1 = Foo.One(13); | 1040 | const foo1 = Foo.One(13); |
| 1078 | const foo2 = Foo.Two(Point { .x = 1234, .y = 5678, }); | 1041 | const foo2 = Foo.Two(Point { .x = 1234, .y = 5678, }); |
| 1079 | const bar = Bar.B; | 1042 | const bar = Bar.B; |
| ... | @@ -1098,15 +1061,13 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1098,15 +1061,13 @@ pub fn main(args: [][]u8) i32 => { |
| 1098 | } | 1061 | } |
| 1099 | | 1062 | |
| 1100 | print_str("OK\n"); | 1063 | print_str("OK\n"); |
| 1101 | | | |
| 1102 | return 0; | | |
| 1103 | } | 1064 | } |
| 1104 | )SOURCE", "OK\n"); | 1065 | )SOURCE", "OK\n"); |
| 1105 | | 1066 | |
| 1106 | add_simple_case("array literal", R"SOURCE( | 1067 | add_simple_case("array literal", R"SOURCE( |
| 1107 | import "std.zig"; | 1068 | import "std.zig"; |
| 1108 | | 1069 | |
| 1109 | pub fn main(args: [][]u8) i32 => { | 1070 | pub fn main(args: [][]u8) %void => { |
| 1110 | const HEX_MULT = []u16{4096, 256, 16, 1}; | 1071 | const HEX_MULT = []u16{4096, 256, 16, 1}; |
| 1111 | | 1072 | |
| 1112 | if (HEX_MULT.len != 4) { | 1073 | if (HEX_MULT.len != 4) { |
| ... | @@ -1118,14 +1079,13 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1118,14 +1079,13 @@ pub fn main(args: [][]u8) i32 => { |
| 1118 | } | 1079 | } |
| 1119 | | 1080 | |
| 1120 | print_str("OK\n"); | 1081 | print_str("OK\n"); |
| 1121 | return 0; | | |
| 1122 | } | 1082 | } |
| 1123 | )SOURCE", "OK\n"); | 1083 | )SOURCE", "OK\n"); |
| 1124 | | 1084 | |
| 1125 | add_simple_case("nested arrays", R"SOURCE( | 1085 | add_simple_case("nested arrays", R"SOURCE( |
| 1126 | import "std.zig"; | 1086 | import "std.zig"; |
| 1127 | | 1087 | |
| 1128 | pub fn main(args: [][]u8) i32 => { | 1088 | pub fn main(args: [][]u8) %void => { |
| 1129 | const array_of_strings = [][]u8 {"hello", "this", "is", "my", "thing"}; | 1089 | const array_of_strings = [][]u8 {"hello", "this", "is", "my", "thing"}; |
| 1130 | var i: @typeof(array_of_strings.len) = 0; | 1090 | var i: @typeof(array_of_strings.len) = 0; |
| 1131 | while (i < array_of_strings.len) { | 1091 | while (i < array_of_strings.len) { |
| ... | @@ -1133,14 +1093,13 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1133,14 +1093,13 @@ pub fn main(args: [][]u8) i32 => { |
| 1133 | print_str("\n"); | 1093 | print_str("\n"); |
| 1134 | i += 1; | 1094 | i += 1; |
| 1135 | } | 1095 | } |
| 1136 | return 0; | | |
| 1137 | } | 1096 | } |
| 1138 | )SOURCE", "hello\nthis\nis\nmy\nthing\n"); | 1097 | )SOURCE", "hello\nthis\nis\nmy\nthing\n"); |
| 1139 | | 1098 | |
| 1140 | add_simple_case("for loops", R"SOURCE( | 1099 | add_simple_case("for loops", R"SOURCE( |
| 1141 | import "std.zig"; | 1100 | import "std.zig"; |
| 1142 | | 1101 | |
| 1143 | pub fn main(args: [][]u8) i32 => { | 1102 | pub fn main(args: [][]u8) %void => { |
| 1144 | const array = []u8 {9, 8, 7, 6}; | 1103 | const array = []u8 {9, 8, 7, 6}; |
| 1145 | for (item, array) { | 1104 | for (item, array) { |
| 1146 | print_u64(item); | 1105 | print_u64(item); |
| ... | @@ -1159,20 +1118,18 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1159,20 +1118,18 @@ pub fn main(args: [][]u8) i32 => { |
| 1159 | print_i64(index); | 1118 | print_i64(index); |
| 1160 | print_str("\n"); | 1119 | print_str("\n"); |
| 1161 | } | 1120 | } |
| 1162 | return 0; | | |
| 1163 | } | 1121 | } |
| 1164 | )SOURCE", "9\n8\n7\n6\n0\n1\n2\n3\n9\n8\n7\n6\n0\n1\n2\n3\n"); | 1122 | )SOURCE", "9\n8\n7\n6\n0\n1\n2\n3\n9\n8\n7\n6\n0\n1\n2\n3\n"); |
| 1165 | | 1123 | |
| 1166 | add_simple_case("function pointers", R"SOURCE( | 1124 | add_simple_case("function pointers", R"SOURCE( |
| 1167 | import "std.zig"; | 1125 | import "std.zig"; |
| 1168 | | 1126 | |
| 1169 | pub fn main(args: [][]u8) i32 => { | 1127 | pub fn main(args: [][]u8) %void => { |
| 1170 | const fns = []@typeof(fn1) { fn1, fn2, fn3, fn4, }; | 1128 | const fns = []@typeof(fn1) { fn1, fn2, fn3, fn4, }; |
| 1171 | for (f, fns) { | 1129 | for (f, fns) { |
| 1172 | print_u64(f()); | 1130 | print_u64(f()); |
| 1173 | print_str("\n"); | 1131 | print_str("\n"); |
| 1174 | } | 1132 | } |
| 1175 | return 0; | | |
| 1176 | } | 1133 | } |
| 1177 | | 1134 | |
| 1178 | fn fn1() u32 => {5} | 1135 | fn fn1() u32 => {5} |
| ... | @@ -1191,7 +1148,7 @@ enum Foo { | ... | @@ -1191,7 +1148,7 @@ enum Foo { |
| 1191 | D, | 1148 | D, |
| 1192 | } | 1149 | } |
| 1193 | | 1150 | |
| 1194 | pub fn main(args: [][]u8) i32 => { | 1151 | pub fn main(args: [][]u8) %void => { |
| 1195 | const foo = Foo.C; | 1152 | const foo = Foo.C; |
| 1196 | const val: i32 = switch (foo) { | 1153 | const val: i32 = switch (foo) { |
| 1197 | Foo.A => 1, | 1154 | Foo.A => 1, |
| ... | @@ -1204,7 +1161,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1204,7 +1161,6 @@ pub fn main(args: [][]u8) i32 => { |
| 1204 | } | 1161 | } |
| 1205 | | 1162 | |
| 1206 | print_str("OK\n"); | 1163 | print_str("OK\n"); |
| 1207 | return 0; | | |
| 1208 | } | 1164 | } |
| 1209 | )SOURCE", "OK\n"); | 1165 | )SOURCE", "OK\n"); |
| 1210 | | 1166 | |
| ... | @@ -1213,7 +1169,7 @@ import "std.zig"; | ... | @@ -1213,7 +1169,7 @@ import "std.zig"; |
| 1213 | | 1169 | |
| 1214 | const ten = 10; | 1170 | const ten = 10; |
| 1215 | | 1171 | |
| 1216 | pub fn main(args: [][]u8) i32 => { | 1172 | pub fn main(args: [][]u8) %void => { |
| 1217 | const one = 1; | 1173 | const one = 1; |
| 1218 | const eleven = ten + one; | 1174 | const eleven = ten + one; |
| 1219 | | 1175 | |
| ... | @@ -1222,7 +1178,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1222,7 +1178,6 @@ pub fn main(args: [][]u8) i32 => { |
| 1222 | } | 1178 | } |
| 1223 | | 1179 | |
| 1224 | print_str("OK\n"); | 1180 | print_str("OK\n"); |
| 1225 | return 0; | | |
| 1226 | } | 1181 | } |
| 1227 | )SOURCE", "OK\n"); | 1182 | )SOURCE", "OK\n"); |
| 1228 | | 1183 | |
| ... | @@ -1233,28 +1188,26 @@ struct Foo { | ... | @@ -1233,28 +1188,26 @@ struct Foo { |
| 1233 | y: bool, | 1188 | y: bool, |
| 1234 | } | 1189 | } |
| 1235 | var foo = Foo { .x = 13, .y = true, }; | 1190 | var foo = Foo { .x = 13, .y = true, }; |
| 1236 | pub fn main(args: [][]u8) i32 => { | 1191 | pub fn main(args: [][]u8) %void => { |
| 1237 | foo.x += 1; | 1192 | foo.x += 1; |
| 1238 | if (foo.x != 14) { | 1193 | if (foo.x != 14) { |
| 1239 | print_str("BAD\n"); | 1194 | print_str("BAD\n"); |
| 1240 | } | 1195 | } |
| 1241 | | 1196 | |
| 1242 | print_str("OK\n"); | 1197 | print_str("OK\n"); |
| 1243 | return 0; | | |
| 1244 | } | 1198 | } |
| 1245 | )SOURCE", "OK\n"); | 1199 | )SOURCE", "OK\n"); |
| 1246 | | 1200 | |
| 1247 | add_simple_case("statically initialized array literal", R"SOURCE( | 1201 | add_simple_case("statically initialized array literal", R"SOURCE( |
| 1248 | import "std.zig"; | 1202 | import "std.zig"; |
| 1249 | const x = []u8{1,2,3,4}; | 1203 | const x = []u8{1,2,3,4}; |
| 1250 | pub fn main(args: [][]u8) i32 => { | 1204 | pub fn main(args: [][]u8) %void => { |
| 1251 | const y : [4]u8 = x; | 1205 | const y : [4]u8 = x; |
| 1252 | if (y[3] != 4) { | 1206 | if (y[3] != 4) { |
| 1253 | print_str("BAD\n"); | 1207 | print_str("BAD\n"); |
| 1254 | } | 1208 | } |
| 1255 | | 1209 | |
| 1256 | print_str("OK\n"); | 1210 | print_str("OK\n"); |
| 1257 | return 0; | | |
| 1258 | } | 1211 | } |
| 1259 | )SOURCE", "OK\n"); | 1212 | )SOURCE", "OK\n"); |
| 1260 | | 1213 | |
| ... | @@ -1262,7 +1215,7 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1262,7 +1215,7 @@ pub fn main(args: [][]u8) i32 => { |
| 1262 | import "std.zig"; | 1215 | import "std.zig"; |
| 1263 | %.err1; | 1216 | %.err1; |
| 1264 | %.err2; | 1217 | %.err2; |
| 1265 | pub fn main(args: [][]u8) i32 => { | 1218 | pub fn main(args: [][]u8) %void => { |
| 1266 | const a = i32(%.err1); | 1219 | const a = i32(%.err1); |
| 1267 | const b = i32(%.err2); | 1220 | const b = i32(%.err2); |
| 1268 | if (a == b) { | 1221 | if (a == b) { |
| ... | @@ -1270,7 +1223,6 @@ pub fn main(args: [][]u8) i32 => { | ... | @@ -1270,7 +1223,6 @@ pub fn main(args: [][]u8) i32 => { |
| 1270 | } | 1223 | } |
| 1271 | | 1224 | |
| 1272 | print_str("OK\n"); | 1225 | print_str("OK\n"); |
| 1273 | return 0; | | |
| 1274 | } | 1226 | } |
| 1275 | )SOURCE", "OK\n"); | 1227 | )SOURCE", "OK\n"); |
| 1276 | | 1228 | |