mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add tracking allocator to test runner. #1809
This commit is contained in:
@@ -8,6 +8,8 @@ def IntList = List(<Foo>);
|
||||
fn void subscript_overload() @test
|
||||
{
|
||||
IntList x;
|
||||
defer x.free();
|
||||
|
||||
x.push({ 3 });
|
||||
int* a = &x[0].a;
|
||||
assert(*a == 3);
|
||||
|
||||
Reference in New Issue
Block a user