mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Introduced ${...} syntax for constants. Fixed issue where constants were not correctly handled for macros. /* */ comments are nesting. Added LINE, FUNC, FILE defines. Corrected shallow resolution of subarrays. Added int defines. Removed Vararray.
This commit is contained in:
committed by
Christoffer Lerno
parent
33fc08542e
commit
5a6cdd25ef
25
test/test_suite/struct/recursive_structs.c3
Normal file
25
test/test_suite/struct/recursive_structs.c3
Normal file
@@ -0,0 +1,25 @@
|
||||
struct Test1
|
||||
{
|
||||
Test1 *x;
|
||||
}
|
||||
|
||||
struct Test2
|
||||
{
|
||||
Test2[] y;
|
||||
}
|
||||
|
||||
struct Test3 // #error: Recursive definition
|
||||
{
|
||||
Test3[4] z;
|
||||
}
|
||||
|
||||
struct Test4
|
||||
{
|
||||
Test4[3]* w;
|
||||
}
|
||||
|
||||
|
||||
struct Test5
|
||||
{
|
||||
Test5[3][] w;
|
||||
}
|
||||
Reference in New Issue
Block a user