Files
c3c/resources/testfragments/diagnostic.c3
Christoffer Lerno 8b49e6c14d Rename def to alias.
2025-03-13 11:22:27 +01:00

20 lines
296 B
Plaintext

import std;
struct Overalign
{
double[<33>] x;
}
alias Olist = List{Overalign};
fn void main()
{
Olist l;
Overalign y;
for (int i = 0; i < 1000; i++)
{
io::printfn("Pushing %d", i);
l.push(y);
if (i > 3) io::printfn("Diff %d", (usz)l.get_ref(i) - (usz)l.get_ref(i - (usz)1));
}
}