mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
22 lines
232 B
Plaintext
22 lines
232 B
Plaintext
module liveness;
|
|
|
|
interface TestProto
|
|
{
|
|
fn void tesT();
|
|
}
|
|
|
|
fn void Test.tesT(&self) @dynamic
|
|
{}
|
|
|
|
struct Test (TestProto)
|
|
{
|
|
void* abc;
|
|
}
|
|
|
|
fn void reflect_test() @test
|
|
{
|
|
TestProto b = mem::alloc(Test);
|
|
b.tesT();
|
|
defer free(b);
|
|
|
|
} |