Files
c3c/test/test_suite/arrays/inferred_array_slice_fail.c3
Christoffer Lerno 0b9b49673e - Empty struct after @if processing was not detected, causing a crash instead of an error.
- Comparing an uint and int[<4>] was incorrectly assumed to be uint compared to int, causing a crash instead of an error.
- When an `int[*][6]` was given too few values, the compiler would assert instead of giving an error.
2026-01-20 00:04:18 +01:00

11 lines
171 B
Plaintext

import std;
macro test(int[*][1] a) {
var b = a;
}
fn int main()
{
int[][1] b;
test(b); // #error: It is not possible to cast 'int[][1]' to 'int[*][1]'
return 12;
}