Files
c3c/test/test_suite/macro_methods/access.c3

35 lines
325 B
C

struct An1
{
An3 x;
}
struct An3
{
An2 y;
}
struct An2
{
int z;
}
extern fn void printf(char *string);
macro void An2.@helloWorld(An2* &an2)
{
printf("An2 hello\n");
}
fn void check()
{
printf("Checking\n");
}
fn void main()
{
An1 an;
an.x.y.@helloWorld();
An2 a;
a.@helloWorld();
}