Files
c3c/test/test_suite/functions/struct_splat_mixed.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

4 lines
231 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

struct ParentType { int a; }
struct ChildType { ParentType b;}
const ChildType ABC2 = { };
float[] asd = { ...ABC2, 0x828dabe3efd81cfa, .c = 8 }; // #error: Youre using both named and unnamed values in the same initializer.