Files
c3c/test/test_suite/struct/struct_slice_access.c3t

24 lines
274 B
Plaintext

module test;
import std;
struct OfStruct
{
int type;
}
struct IContainAnArrayOfStructs
{
OfStruct[] array;
}
macro reproduce(OfStruct[] $self)
{
var a = $self;
var b = $self[0];
}
fn int main(String[] args)
{
reproduce({{1},{2},{3}});
return 0;
}