mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
0.7 fixes. Improving the yacc grammar.
This commit is contained in:
@@ -76,7 +76,7 @@ fn void main()
|
||||
testAllocator(tmem, 126);
|
||||
testAllocator(tmem, 12600);
|
||||
ArenaAllocator aa;
|
||||
aa.init(&&char[1024] {});
|
||||
aa.init(&&(char[1024]){});
|
||||
testAllocator(&aa, 126);
|
||||
io::printn("Test dynamic arena");
|
||||
DynamicArenaAllocator dynamic_arena;
|
||||
|
||||
@@ -13,7 +13,7 @@ struct Foo
|
||||
fn Foo createFoo(int a, int b = 10)
|
||||
{
|
||||
// Compound initializer
|
||||
return Foo {a, b};
|
||||
return (Foo) {a, b};
|
||||
}
|
||||
|
||||
struct Bar
|
||||
|
||||
Reference in New Issue
Block a user