Christoffer Lerno
79db06ecd1
Crash when trying to define a method macro that isn't @construct but has no arguments.
2025-02-20 15:51:21 +01:00
Christoffer Lerno
341a70bd5d
Implicitly unwrapped optional value in defer incorrectly copied #1982 .
2025-02-20 03:44:22 +01:00
Alex Veden
5046608d1f
added io::stdout().flush() - to force printing test name before possible deadlock
...
mem::scoped() and long jump resilience fixed #1963
fixed --test-nosort argument + extra test for teardown_fn memory leak
Some renaming. Simplify robust test allocator handling. Pop temp allocators in test runner.
`Thread` no longer allocates memory on posix.
Update unprintable struct output.
Correctly give an error if a character literal contains a line break.
2025-02-20 01:15:48 +01:00
Christoffer Lerno
b45cb22950
Some improvements to the test_suite_runner
2025-02-19 20:59:12 +01:00
Christoffer Lerno
d6485ca08b
Test new tester script.
2025-02-19 18:01:44 +01:00
Christoffer Lerno
d9e5926d57
Fix error when boolean combined with ??. First checkin of C3 tester (unfinished)
2025-02-19 01:02:58 +01:00
Christoffer Lerno
cbacd64987
Update tests to (Foo) { ... } syntax.
2025-02-18 18:53:30 +01:00
Christoffer Lerno
168c11e006
{| |} expression blocks deprecated.
2025-02-18 12:50:34 +01:00
Christoffer Lerno
0d7697280c
Fix of test (again)
2025-02-17 00:22:21 +01:00
Christoffer Lerno
0a93581695
Fix test.
2025-02-17 00:03:44 +01:00
Christoffer Lerno
0509b40b21
- Fix issue when dereferencing a constant string.
...
- Fix problem where a line break in a literal was allowed.
2025-02-16 23:55:55 +01:00
Christoffer Lerno
0dd1a93d0d
Regression String! a; char* b = a.ptr; would incorrectly be allowed.
2025-02-14 16:11:31 +01:00
Christoffer Lerno
7ca70b20be
Allow (Foo) { 1, 2 } syntax for compound literals.
2025-02-14 12:51:58 +01:00
Bruno Dias
e0cfe56121
Fixed nix build for macos. ( #1914 )
...
* Fixed nix build for macos.
* Fix test.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-02-13 22:44:21 +01:00
Christoffer Lerno
e96dce92cd
Issue when scalar expanding a boolean from a conditional to a bool vector #1954 .
2025-02-13 21:36:28 +01:00
Christoffer Lerno
cec9b21707
Missing end padding when including a packed struct #1966 .
2025-02-13 21:15:27 +01:00
Christoffer Lerno
8c58b31bbd
Remove <[]> experimental generic syntax.
2025-02-13 12:53:46 +01:00
Jamie Wales
a297470887
Add further tests to vector library
2025-02-12 23:31:10 +01:00
Christoffer Lerno
1f856cacf5
HashMap is now Printable. Fix access inlining for enums. #1958
2025-02-12 23:11:46 +01:00
Christoffer Lerno
4961d0433f
- Circumvent Aarch64 miscompilations of atomics.
...
- Fixes to ByteBuffer allocation/free.
- Fix issue where compiling both for asm and object file would corrupt the obj file output.
2025-02-12 12:50:30 +01:00
Christoffer Lerno
ba48627ca0
Fix address out of bounds access in test.
2025-02-11 00:22:01 +01:00
Christoffer Lerno
f8e3ffd267
Fix test
2025-02-10 22:19:16 +01:00
Christoffer Lerno
8b8a2beb0d
Fix threading test.
2025-02-10 22:08:54 +01:00
Christoffer Lerno
79a4b6855b
- Detect unaligned loads #1951 .
...
- Fix issue where aligned bitstructs did not store/load with the given alignment.
2025-02-10 22:07:15 +01:00
Christoffer Lerno
86680279fa
Improve inference on ?? #1943 .
2025-02-10 16:20:33 +01:00
Christoffer Lerno
c4212c4649
- Test runner will also check for leaks.
...
- `write` of qoi would leak memory.
- Issue when having an empty `Path` or just "."
- `set_env` would leak memory.
2025-02-10 00:39:02 +01:00
Christoffer Lerno
63f619e5b6
Add tracking allocator to test runner. #1809
2025-02-09 03:10:35 +01:00
Christoffer Lerno
c4f9efc8f5
Allow fn int test() => @pool() { return 1; } short function syntax usage #1906 .
2025-02-08 22:45:14 +01:00
Christoffer Lerno
69e30c19f8
Distinct inline void causes unexpected error if used in slice #1946 .
2025-02-08 20:33:08 +01:00
Christoffer Lerno
940874e349
Cleaner error message when missing comma in struct initializer #1941 .
2025-02-08 19:54:44 +01:00
Christoffer Lerno
d3f2180330
bigint::from_int(0) throws assertion #1944 .
2025-02-08 19:15:14 +01:00
Christoffer Lerno
68b5c1e1f1
Fix bigint hex parsing #1945 .
2025-02-08 19:06:06 +01:00
Christoffer Lerno
c8e671d34b
Assert when using optional as init or inc part in a for loop #1942 .
2025-02-08 18:58:44 +01:00
Christoffer Lerno
46c7e9aefa
Cleanup QOI
2025-02-08 00:32:48 +01:00
Christoffer Lerno
fa4fb44779
Issue with defer copying when triggered by break or continue.
2025-02-08 00:14:01 +01:00
Christoffer Lerno
77db50bce8
Allow function types to have a calling convention. #1938
2025-02-07 22:03:15 +01:00
Christoffer Lerno
3e1e3e3e29
Incorrect error message when providing too many associated values for enum #1934 .
2025-02-07 10:44:53 +01:00
Christoffer Lerno
bc63c16c93
Add @select to perform the equivalent of a ? x : y at compile time.
2025-02-06 22:21:26 +01:00
Aleksandr Vedeneev
3a502feb1d
test::eq/ne/gt syntax ( #1928 )
...
* test::eq/ne/gt syntax
* renamed @almost to test::eq_approx
2025-02-05 22:50:25 +01:00
Christoffer Lerno
8b794e8cea
Updated test (again!)
2025-02-04 23:36:27 +01:00
Christoffer Lerno
549e27a800
Fix test compatibility with LLVM 21
2025-02-04 23:11:09 +01:00
Christoffer Lerno
6fcda240b8
Fixes to enum conversions.
2025-02-04 22:26:51 +01:00
Christoffer Lerno
fff3cf33c7
Issue where inlined expr enums weren't properly const folded.
2025-02-04 21:46:23 +01:00
Christoffer Lerno
c54c400291
Allow inline enum values to define sizes.
2025-02-04 00:23:59 +01:00
Christoffer Lerno
aaa5c0f743
Fix bug in parsing inline enums.
2025-02-03 23:43:34 +01:00
Christoffer Lerno
9d2f4e72c2
Add inline to enums #1819 .
2025-02-03 22:51:50 +01:00
Christoffer Lerno
300983f831
Compile time array assign ops, e.g. $c[1] += 3 #1890 .
2025-02-03 00:35:20 +01:00
Christoffer Lerno
f2df4855ff
Improve error message when using ',' in struct declarations. #1920
2025-02-02 22:44:30 +01:00
Christoffer Lerno
20d93ede0c
Fix test compatibility with LLVM 20
2025-02-02 02:47:51 +01:00
Christoffer Lerno
f8b2f7f268
Refactor casts and make untyped list conversions not dependent on context.
2025-02-01 23:37:32 +01:00