mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
AST printout removed. Split initializer types. Const list functionality.
This commit is contained in:
committed by
Christoffer Lerno
parent
c76e8e0713
commit
bcda6d71c9
27
test/test_suite/initializer_lists/general_tests.c3t
Normal file
27
test/test_suite/initializer_lists/general_tests.c3t
Normal file
@@ -0,0 +1,27 @@
|
||||
// #skip
|
||||
|
||||
union Baz
|
||||
{
|
||||
int x;
|
||||
double y;
|
||||
}
|
||||
struct Bar
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
}
|
||||
|
||||
func int test()
|
||||
{
|
||||
Baz ffe = { .x = 1 };
|
||||
int[1] azz = {};
|
||||
int[*] a = {};
|
||||
var $foo = { 1, 2, 3 };
|
||||
bool x = ! int[] { 1, 2, 3 };
|
||||
Bar b = {};
|
||||
Baz z = {};
|
||||
int[] sub = {};
|
||||
Bar[] foo = {};
|
||||
Baz[3] baz = {};
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user