Files
c3c/test/test_suite/builtins/builtin_named.c3
Christoffer Lerno 0fea6c6056 - Bitstruct with unevaluated user-defined type would cause a crash.
- Using named parameters with builtins would cause a crash.
- In some cases, using missing identifiers with builtins would cause a crash.
- Using `$defined` with function call missing arguments would cause a crash.
- Adding @nostrip to a test function would crash.
- Mixing struct splat, non-named params and named params would crash rather than to print an error.
- Creating a char vector from bytes would crash.
- Using $$wstr16 with an illegal argument would crash instead of printing an error.
2026-01-19 02:49:54 +01:00

7 lines
174 B
Plaintext

module test;
fn void main()
{
ichar x = 1;
ichar z2;
bool success2 = $$overflow_add(x, file: filename, &z2); // #error: Named arguments are not allowed in builtin calls.
}