Остання активність 5 days ago

ncc-test-verbose.log Неформатований
1❯ make test-verbose
2cargo build --release
3warning: variable `has_hex_digit` is assigned to, but never used
4 --> src/compiler/syntax/lexer.rs:232:29
5 |
6232 | let mut has_hex_digit = false;
7 | ^^^^^^^^^^^^^
8 |
9 = note: consider using `_has_hex_digit` instead
10 = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
11
12warning: value assigned to `has_hex_digit` is never read
13 --> src/compiler/syntax/lexer.rs:237:29
14 |
15237 | ... has_hex_digit = true;
16 | ^^^^^^^^^^^^^
17 |
18 = help: maybe it is overwritten before being read?
19 = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
20
21warning: variable `has_octal_digit` is assigned to, but never used
22 --> src/compiler/syntax/lexer.rs:254:29
23 |
24254 | let mut has_octal_digit = false;
25 | ^^^^^^^^^^^^^^^
26 |
27 = note: consider using `_has_octal_digit` instead
28
29warning: value assigned to `has_octal_digit` is never read
30 --> src/compiler/syntax/lexer.rs:259:29
31 |
32259 | ... has_octal_digit = true;
33 | ^^^^^^^^^^^^^^^
34 |
35 = help: maybe it is overwritten before being read?
36
37warning: multiple methods are never used
38 --> src/compiler/backend/asm.rs:46:8
39 |
40 14 | impl AsmBackend {
41 | --------------- methods in this implementation
42...
43 46 | fn emit_syscall_write(&self, out: &mut String) {
44 | ^^^^^^^^^^^^^^^^^^
45...
46 51 | fn emit_syscall_exit(&self, out: &mut String) {
47 | ^^^^^^^^^^^^^^^^^
48...
49 56 | fn emit_syscall_mmap(&self, out: &mut String) {
50 | ^^^^^^^^^^^^^^^^^
51...
52 62 | fn emit_syscall_read(&self, out: &mut String) {
53 | ^^^^^^^^^^^^^^^^^
54...
55 67 | fn emit_syscall_open(&self, out: &mut String) {
56 | ^^^^^^^^^^^^^^^^^
57...
58 72 | fn emit_syscall_close(&self, out: &mut String) {
59 | ^^^^^^^^^^^^^^^^^^
60...
61 77 | fn emit_syscall_stat(&self, out: &mut String) {
62 | ^^^^^^^^^^^^^^^^^
63...
64 82 | fn emit_syscall_getdents64(&self, out: &mut String) {
65 | ^^^^^^^^^^^^^^^^^^^^^^^
66...
67 87 | fn emit_syscall_unlink(&self, out: &mut String) {
68 | ^^^^^^^^^^^^^^^^^^^
69...
70 92 | fn emit_syscall_access(&self, out: &mut String) {
71 | ^^^^^^^^^^^^^^^^^^^
72...
73 97 | fn emit_syscall_nanosleep(&self, out: &mut String) {
74 | ^^^^^^^^^^^^^^^^^^^^^^
75...
76102 | fn emit_syscall_clock_gettime(&self, out: &mut String) {
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
78...
79125 | fn stat_st_size_offset(&self) -> usize {
80 | ^^^^^^^^^^^^^^^^^^^
81 |
82 = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
83
84warning: method `lower_global_function_call` is never used
85 --> src/compiler/ir/mod.rs:3776:8
86 |
87 664 | impl<'a> FunctionBuilder<'a> {
88 | ---------------------------- method in this implementation
89...
903776 | fn lower_global_function_call(
91 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
92
93warning: `ncc` (lib) generated 6 warnings
94 Finished `release` profile [optimized] target(s) in 0.02s
95Running tests with verbose output...
96
97==================== array_range.nc ====================
98Expected: PASS check and run
99FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
100Running array_range.nc...
101--- Basic Slice ---
102[0, 1, 1, 2, 3]
103[1, 2, 3, 5]
104
105--- Step Slice ---
106[0, 1, 3, 8, 21, 55]
107FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
108Result: ✅ PASSED
109
110==================== array_simple.nc ====================
111Expected: PASS check and run
112FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
113Running array_simple.nc...
114Array created
115Index: 0
116Index: 1
117Index: 2
118Done
119FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
120Result: ✅ PASSED
121
122==================== assert.nc ====================
123Expected: PASS check and run
124FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
125Running assert.nc...
126Assert passed: x < y
127Assert passed: x != y
128Assert passed: true
129All assertions passed!
130FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
131Result: ✅ PASSED
132
133==================== async_await.fail.nc ====================
134Expected: FAIL check (legacy)
135Error: expected function call after 'async'
136 --> tests/async_await.fail.nc:12:26
137 |
13812 | int* future = async 5
139 | ^
140 | here
141
142Error: compilation halted: 1 errors emitted
143FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
144Result: ✅ PASSED (error as expected)
145
146==================== async_error_handling.nc ====================
147Expected: PASS check and run
148FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
149Running async_error_handling.nc...
150Success! Value: 42
151FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
152Result: ✅ PASSED
153
154==================== async.nc ====================
155Expected: PASS check and run
156FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
157Running async.nc...
158Result from async call: 5050
159Result 2: 5050
160Result 3: 5050
161All async operations completed!
162FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
163Result: ✅ PASSED
164
165==================== async_type_mismatch.fail.nc ====================
166Expected: FAIL check (legacy)
167Error: cannot initialize variable 'result' of type 'int' with value of type 'int*'
168 --> tests/async_type_mismatch.fail.nc:10:5
169 |
17010 | int result = async returnsInt()
171 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172 |
173
174Error: cannot await non-Future type 'int'
175 --> tests/async_type_mismatch.fail.nc:14:19
176 |
17714 | int y = await x
178 | ^
179 |
180
181Error: type validation failed
182FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
183Result: ✅ PASSED (error as expected)
184
185==================== bool.nc ====================
186Expected: PASS check and run
187FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
188Running bool.nc...
189True is: true
190False is: false
191t is true
192f is false
193FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
194Result: ✅ PASSED
195
196==================== builtins_combined.nc ====================
197Expected: PASS check and run
198FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
199Running builtins_combined.nc...
200new(int) = 0
201int("789") = 789
202Assert passed: val = 100
203str(new(int)) = "0"
204All builtin function tests passed!
205FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
206Result: ✅ PASSED
207
208==================== byte_test.nc ====================
209Expected: PASS check and test
210FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
211Testing byte_test.nc...
212No tests found in tests/byte_test.nc
213FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
214Result: ✅ PASSED
215
216==================== char_conversion.nc ====================
217Expected: PASS check and run
218FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
219Running char_conversion.nc...
220ASCII 'A' test passed
221ASCII 'z' test passed
222Digit '0' test passed
223Special chars test passed
2242-byte UTF-8: é
225Greek alpha: α
226Chinese 中: 中
227Heart: ❤
228Emoji: 😀
229Thumbs up: 👍
230Invalid surrogate: �
231Over max unicode: �
232Null char length: should work
233Max ASCII (DEL): passed
234Max unicode codepoint: 􏿿
235Byte to char conversion passed
236int(char) round-trip passed
237byte(char) conversion passed
238All char() tests passed!
239FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
240Result: ✅ PASSED
241
242==================== char_test.nc ====================
243Expected: PASS check and test
244FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
245Testing char_test.nc...
246No tests found in tests/char_test.nc
247FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
248Result: ✅ PASSED
249
250==================== comparison.nc ====================
251Expected: PASS check and run
252FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
253Running comparison.nc...
254String: abc
255Length: 3
2560 < 3: true
2571 < 3: true
2582 < 3: true
2593 < 3: false (CORRECT)
260FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
261Result: ✅ PASSED
262
263==================== compound.nc ====================
264Expected: PASS check and run
265FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
266Running compound.nc...
267Numerator: 20, Denominator: 31
268Numerator: 40, Denominator: 31
269x = 15
270x = 12
271x = 24
272x = 6
273x = 2
274FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
275Result: ✅ PASSED
276
277==================== enum.nc ====================
278Expected: PASS check and run
279FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
280Running enum.nc...
281complete
282failed
283pending
2841
2850
286stat1 is Complete
287stat2 is not Pending
288FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
289Result: ✅ PASSED
290
291==================== error_handling.nc ====================
292Expected: PASS check and run
293FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
294Running error_handling.nc...
295Result: 5
296Got expected error: division by zero
297Found at index: 2
298Correctly not found
299FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
300Result: ✅ PASSED
301
302==================== file_buffer.nc ====================
303Expected: PASS check and run
304FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
305Running file_buffer.nc...
306Wrote 20 bytes
307Read 20 bytes
308File contents: ABCDEFGHIJKLMNOPQRST
309Content verified!
310Seek test passed!
311SEEK_CUR test passed!
312SEEK_END test passed!
313Chunked reading test passed! Read 20 bytes in 4 chunks
314write_str test passed!
315Original: Hello, world!
316Read back: Hello, world!
317String to bytes round-trip passed!
318All buffer I/O tests passed!
319FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
320Result: ✅ PASSED
321
322==================== functions_as_values.nc ====================
323Expected: PASS check and run
324FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
325Running functions_as_values.nc...
326FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
327Result: ✅ PASSED
328
329==================== int_conversions.nc ====================
330Expected: PASS check and run
331FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
332Running int_conversions.nc...
333int() conversions: 123, 456
334uint() conversions: 789, 100
335bigint() conversions: 123456789, 999
336type conversions: int=42, uint=42, bigint=42
337FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
338Result: ✅ PASSED
339
340==================== int_decimal_trunc.nc ====================
341Expected: PASS check and run
342FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
343Running int_decimal_trunc.nc...
344decimal to int (truncated): 3.14d -> 3, 2.99d -> 2, -1.5d -> -3
345decimal to uint (truncated): 3.14d -> 3, 2.99d -> 2
346decimal to bigint (truncated): 3.14d -> 3
347FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
348Result: ✅ PASSED
349
350==================== int_hex_octal.nc ====================
351Expected: PASS check and run
352FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
353Running int_hex_octal.nc...
354hex values: 0xFF=255, 0xff=255, 0x10=16, 0xABCD=43981
355octal values: 0o777=511, 0o10=8, 0o123=83
3560xFF + 0o10 = 263
357FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
358Result: ✅ PASSED
359
360==================== int_type_incompatibility.fail.nc ====================
361Expected: FAIL check (legacy)
362Error: cannot mix bigint with int or uint in arithmetic operator '+'
363 --> tests/int_type_incompatibility.fail.nc:8:19
364 |
3658 | int result1 = i + b // Error: cannot mix bigint with int
366 | ^
367 |
368 --> tests/int_type_incompatibility.fail.nc:8:23
369 |
3708 | int result1 = i + b // Error: cannot mix bigint with int
371 | ^
372 |
373
374Error: cannot mix bigint with int or uint in arithmetic operator '+'
375 --> tests/int_type_incompatibility.fail.nc:9:22
376 |
3779 | bigint result2 = b + i // Error: cannot mix bigint with int
378 | ^
379 |
380 --> tests/int_type_incompatibility.fail.nc:9:26
381 |
3829 | bigint result2 = b + i // Error: cannot mix bigint with int
383 | ^
384 |
385
386Error: cannot mix bigint with int or uint in arithmetic operator '*'
387 --> tests/int_type_incompatibility.fail.nc:10:19
388 |
38910 | int result3 = i * b // Error: cannot mix bigint with int
390 | ^
391 |
392 --> tests/int_type_incompatibility.fail.nc:10:23
393 |
39410 | int result3 = i * b // Error: cannot mix bigint with int
395 | ^
396 |
397
398Error: type validation failed
399FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
400Result: ✅ PASSED (error as expected)
401
402==================== int_types.nc ====================
403Expected: PASS check and run
404FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
405Running int_types.nc...
406int values: 42, -100
407uint values: 100, 0
408bigint values: 0, 999
409converted from string: int=123, uint=456, bigint=789
410FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
411Result: ✅ PASSED
412
413==================== listdir.nc ====================
414Expected: PASS check and run
415FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
416Running listdir.nc...
417=== Using io.stat (single file) ===
418README.md: size=786, is_dir=0, mode=420
419
420=== Using io.readdir (directory listing) ===
421Found 13 entries:
422 [dir] .github: 4096 bytes
423 [file] Makefile: 6916 bytes
424 [dir] tests: 4096 bytes
425 [dir] target: 4096 bytes
426 [file] .gitignore: 708 bytes
427 [dir] .git: 4096 bytes
428 [file] LICENSE: 11356 bytes
429 [dir] .idea: 4096 bytes
430 [dir] src: 4096 bytes
431 [file] Cargo.lock: 6566 bytes
432 [file] Cargo.toml: 238 bytes
433 [dir] std: 4096 bytes
434 [file] README.md: 786 bytes
435
436=== Recursive directory listing ===
437 [file] Makefile
438 [dir] tests/
439 [file] variadic_debug.nc
440 [file] int_hex_octal.nc
441 [file] testing.test.nc
442 [file] scope_leak_if.fail.nc
443 [file] segfault.fail.run.nc
444 [file] struct.nc
445 [file] struct_array.nc
446 [file] panic.fail.run.nc
447 [file] functions_as_values.nc
448 [file] variadic_iter.nc
449 [file] error_handling.nc
450 [file] async.nc
451 [file] variadic.nc
452 [file] nested_struct_array.nc
453 [file] builtins_combined.nc
454 [file] enum.nc
455 [file] type_casts.nc
456 [file] simple_slice.nc
457 [file] listdir.nc
458 [file] scope_leak.fail.nc
459 [file] char_conversion.nc
460 [file] variadic_simple.nc
461 [file] comparison.nc
462 [file] int_types.nc
463 [file] type_alias.nc
464 [file] str.nc
465 [file] loops.nc
466 [file] tuples_comprehensive.nc
467 [file] array_simple.nc
468 [file] type_alias_func.nc
469 [file] file_buffer.nc
470 [file] async_type_mismatch.fail.nc
471 [file] int_conversions.nc
472 [file] char_test.nc
473 [file] new.nc
474 [file] assert.nc
475 [file] loop_scope.nc
476 [file] shadowing.nc
477 [file] type_alias_nested.nc
478 [file] int_decimal_trunc.nc
479 [file] array_range.nc
480 [file] byte_test.nc
481 [file] bool.nc
482 [file] async_await.fail.nc
483 [file] operators.nc
484 [file] time_now.nc
485 [file] compound.nc
486 [file] int_type_incompatibility.fail.nc
487 [file] async_error_handling.nc
488 [file] time_sleep.nc
489 [file] .gitignore
490 [file] LICENSE
491 [dir] src/
492 [file] lib.rs
493 [dir] compiler/
494 [dir] passes/
495 [file] mod.rs
496 [file] optimizations.rs
497 [dir] syntax/
498 [file] ast.rs
499 [file] mod.rs
500 [file] lexer.rs
501 [file] parser.rs
502 [file] ast_printer.rs
503 [dir] source/
504 [file] mod.rs
505 [file] driver.rs
506 [file] target.rs
507 [file] mod.rs
508 [dir] hir/
509 [file] mod.rs
510 [dir] backend/
511 [file] mod.rs
512 [file] asm.rs
513 [dir] diagnostics/
514 [file] mod.rs
515 [file] runtime.rs
516 [dir] ir/
517 [file] mod.rs
518 [file] cli.rs
519 [file] main.rs
520 [file] Cargo.lock
521 [file] Cargo.toml
522 [dir] std/
523 [file] os.nc
524 [file] math.nc
525 [file] io.nc
526 [file] time.nc
527 [file] README.md
528FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
529Result: ✅ PASSED
530
531==================== loop_scope.nc ====================
532Expected: PASS check and run
533FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
534Running loop_scope.nc...
535n: 0 1
536n: 1 2
537n: 2 3
538x: 2
539FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
540Result: ✅ PASSED
541
542==================== loops.nc ====================
543Expected: PASS check and run
544FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
545Running loops.nc...
546a = 0
547a = 1
548a = 2
549a = 3
550a = 4
551a = 5
552a = 6
553a = 7
554a = 8
555a = 9
556b = 2
557b = 1
5581
5592
5603
5614
5625
5636
5647
5658
5669
56710
56811
56912
57013
57114
57215
57316
57417
57518
57619
57720
5781
5793
5805
5817
5829
58311
58413
58515
58617
58719
588FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
589Result: ✅ PASSED
590
591==================== nested_struct_array.nc ====================
592Expected: PASS check and run
593FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
594Running nested_struct_array.nc...
595All tests passed!
596FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
597Result: ✅ PASSED
598
599==================== new.nc ====================
600Expected: PASS check and run
601FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
602Running new.nc...
603new(int) = 0
604new(bool) = 0
605new(str) = ""
606new(int) again = 0
607FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
608Result: ✅ PASSED
609
610==================== operators.nc ====================
611Expected: PASS check and run
612FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
613Running operators.nc...
614=== Arithmetic Operators ===
615a = 10, b = 3
616a + b = 13
617a - b = 7
618a * b = 30
619a / b = 3
620a % b = 1
621a ** b = 1000
622
623=== Comparison Operators ===
624a == b: 0
625a != b: 1
626a < b: 0
627a > b: 1
628a <= b: 0
629a >= b: 1
630
631=== Logical Operators ===
632x = 1, y = 0
633x and y: 0
634x or y: 1
635not x: 0
636not y: 1
637
638=== Bitwise Operators ===
639c = 5, d = 3
640c << 1 = 10
641c >> 1 = 2
642c & d = 1
643c | d = 7
644c ^ d = 6
645!c = -6
646
647=== Concatenation Operator ===
648s1 <> s2 <> s3 = Hello World
649arr1 <> arr2: concatenated (array length: 771)
650
651=== Unary Operators ===
652e = 42
653-e = -42
654!e = -43
655f = 1
656not f = 0
657
658=== Operator Precedence ===
6592 + 3 * 4 = 14
660true and false or true = 1
6611 + 2 << 1 = 6
662
663=== All tests completed ===
664FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
665Result: ✅ PASSED
666
667==================== panic.fail.run.nc ====================
668Expected: PASS check, FAIL run
669FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
670Running panic.fail.run.nc...
671Test panic messageFINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
672Result: ✅ PASSED (runtime error as expected)
673
674==================== scope_leak.fail.nc ====================
675Expected: FAIL check (legacy)
676Error: undefined variable 'n'
677 --> tests/scope_leak.fail.nc:7:13
678 |
6797 | int x = n
680 | ^
681 | here
682
683Error: compilation halted: 1 errors emitted
684FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
685Result: ✅ PASSED (error as expected)
686
687==================== scope_leak_if.fail.nc ====================
688Expected: FAIL check (legacy)
689Error: undefined variable 'y'
690 --> tests/scope_leak_if.fail.nc:5:13
691 |
6925 | int z = y
693 | ^
694 | here
695
696Error: compilation halted: 1 errors emitted
697FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
698Result: ✅ PASSED (error as expected)
699
700==================== segfault.fail.run.nc ====================
701Expected: PASS check, FAIL run
702FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
703Running segfault.fail.run.nc...
704Error: signal 11:
705Stacktrace:
706 /tmp/ncc/segfault.fail.run(__nc_print_stacktrace+0x2e) [0x56468905e148]
707 /tmp/ncc/segfault.fail.run(__nc_signal_handler+0x31) [0x56468905e256]
708 /usr/lib/libc.so.6(+0x3e4d0) [0x7f39ea03e4d0]
709 /tmp/ncc/segfault.fail.run(+0x1213) [0x56468905d213]
710FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
711Result: ✅ PASSED (runtime error as expected)
712
713==================== shadowing.nc ====================
714Expected: PASS check and run
715FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
716Running shadowing.nc...
7171
718hello
7191
720hello
721FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
722Result: ✅ PASSED
723
724==================== simple_slice.nc ====================
725Expected: PASS check and run
726FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
727Running simple_slice.nc...
728Array: [1, 2, 3, 4, 5]
729nums[1:3]: [2, 3, 4]
730FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
731Result: ✅ PASSED
732
733==================== str.nc ====================
734Expected: PASS check and run
735FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
736Running str.nc...
7370:139980690964480
7381:139980690944000
7392:139980690923520
7403:139980690903040
7414:139980690882560
7425:139980690862080
7436:139980690841600
7447:139980690821120
7450:139980690800640
7461:139980690780160
7472:139980690759680
7483:139980690739200
7494:139980690718720
7505:139980690698240
7516:139980690677760
7527:139980690657280
7530:139980690636800
754FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
755Result: ✅ PASSED
756
757==================== struct_array.nc ====================
758Expected: PASS check and run
759FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
760Running struct_array.nc...
761Person created: Alice, 30
762Array created
763Index: 0
764Name: Alice, Age: 30
765Index: 1
766Name: Bob, Age: 25
767Done
768FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
769Result: ✅ PASSED
770
771==================== struct.nc ====================
772Expected: PASS check and run
773FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
774Running struct.nc...
775Name: Alice, Age: 30
776name Alice
777age 30
778Numerator: 11, Denominator: 32
779Numerator: 20, Denominator: 62
780Numerator: 40, Denominator: 62
781Name: Bob, Age: 25
782name Bob
783age 25
784Name: Alice, Age: 30
785name Alice
786age 30
787Name: Charlie, Age: 35
788name Charlie
789age 35
790FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
791Result: ✅ PASSED
792
793==================== testing.test.nc ====================
794Expected: PASS check and test
795FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
796Testing testing.test.nc...
797
798Test results: 1 passed, 0 failed
799FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
800Result: ✅ PASSED
801
802==================== time_now.nc ====================
803Expected: PASS check and run
804FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
805Running time_now.nc...
806Current timestamp: 1764519641
807Timestamp after 1s: 1764519642
808FINISHED CPU 0.03 MEM 7716 MAXMEM 7716 STALE 1 MAXMEM_RSS 5540
809Result: ✅ PASSED
810
811==================== time_sleep.nc ====================
812Expected: PASS check and run
813FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
814Running time_sleep.nc...
815Start
816End
817FINISHED CPU 0.03 MEM 0 MAXMEM 7708 STALE 2 MAXMEM_RSS 5400
818Result: ✅ PASSED
819
820==================== tuples_comprehensive.nc ====================
821Expected: PASS check and run
822FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
823Running tuples_comprehensive.nc...
824--- Basic Tuple ---
825t1[0]: 1
826t1[1]: Hi
827
828--- Optional Tuple ---
829result[0] is set
830result[1] is none
831
832--- Return Tuple ---
833vals: 6, -2
834
835--- Indexing ---
836vals[0]: 1
837vals[1]: hi
838vals[2]: 2
839
840--- Destructuring ---
841a: 1, b: 2
842x: 10, y: Test
843FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
844Result: ✅ PASSED
845
846==================== type_alias_func.nc ====================
847Expected: PASS check and run
848FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
849Running type_alias_func.nc...
850ID: 123, Name: Alice
851FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
852Result: ✅ PASSED
853
854==================== type_alias.nc ====================
855Expected: PASS check and run
856FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
857Running type_alias.nc...
858Type alias test passed!
859FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
860Result: ✅ PASSED
861
862==================== type_alias_nested.nc ====================
863Expected: PASS check and run
864FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
865Running type_alias_nested.nc...
866x = 42
867FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
868Result: ✅ PASSED
869
870==================== type_casts.nc ====================
871Expected: PASS check and run
872FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
873Running type_casts.nc...
874int("123") = 123
875str(456) = 456
876bool(0) = 0
877bool(1) = 1
878bool(42) = 1
879FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
880Result: ✅ PASSED
881
882==================== variadic_debug.nc ====================
883Expected: PASS check and run
884FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
885Running variadic_debug.nc...
886Starting sum
887About to iterate
888In loop, index: 0
889Adding: 1
890In loop, index: 1
891Adding: 2
892In loop, index: 2
893Adding: 3
894Final total: 6
895Result: 6
896FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
897Result: ✅ PASSED
898
899==================== variadic_iter.nc ====================
900Expected: PASS check and run
901FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
902Running variadic_iter.nc...
903Starting sum
904Adding: 1
905Adding: 2
906Adding: 3
907Final total: 6
908Result: 6
909FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
910Result: ✅ PASSED
911
912==================== variadic.nc ====================
913Expected: PASS check and run
914FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
915Running variadic.nc...
916Sum1 (10): 10
917Sum2 (10+5): 15
918Sum3 (10+5+10+20): 45
919Hello World!
920No Newline
921FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
922Result: ✅ PASSED
923
924==================== variadic_simple.nc ====================
925Expected: PASS check and run
926FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
927Running variadic_simple.nc...
928Got args
929Done
930FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
931Result: ✅ PASSED
932
933==================== Summary ====================
934Results: 50 passed, 0 failed
935~/git/nc master +7 9s
936