mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
20 lines
212 B
C
20 lines
212 B
C
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 = malloc(Test);
|
|
b.tesT();
|
|
} |