mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- 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.
This commit is contained in:
1
test/test_suite/globals/extern_const_no_type.c3
Normal file
1
test/test_suite/globals/extern_const_no_type.c3
Normal file
@@ -0,0 +1 @@
|
||||
extern const FOO; // #error: A type is needed for the extern constant 'FOO'
|
||||
Reference in New Issue
Block a user