Files
c3c/test/test_suite/union/union_too_big.c3
Christoffer Lerno dd8449576f - Passing a non-conststring to module attributes like @cname would trigger an assert rather than printing an error.
- Passing different types to arg 1 and 2 for $$matrix_transpose would trigger an assert.
- Zero init of optional compile time variable would crash the compiler.
- Using multiple declaration for generics in generic module would fail.
- Defining an extern const without a type would crash rather than print an error.
- Typedef followed by brace would trigger an assert.
- Union with too big member would trigger an assert.
2026-01-18 22:47:17 +01:00

4 lines
102 B
Plaintext

union Xu
{
int[int.max] b; // #error: Union member 'b' would cause the union to become too large
}