Files
c3c/test/test_suite/macro_methods/access.c3
2021-11-16 17:46:44 +01:00

34 lines
312 B
C

struct An1
{
An3 x;
}
struct An3
{
An2 y;
}
struct An2
{
}
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();
}