mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
38 lines
360 B
C
38 lines
360 B
C
struct Foo
|
|
{
|
|
int a;
|
|
float b;
|
|
}
|
|
|
|
struct Bar
|
|
{
|
|
int b;
|
|
float c;
|
|
}
|
|
|
|
struct Baz
|
|
{
|
|
int b;
|
|
int c;
|
|
}
|
|
|
|
struct BazTwo
|
|
{
|
|
int[1] d;
|
|
int e;
|
|
}
|
|
|
|
fn void test()
|
|
{
|
|
Foo x;
|
|
Bar y = (Bar)(x);
|
|
|
|
Baz z;
|
|
int[2] w = (int[2])(z);
|
|
z = (Baz)(w);
|
|
BazTwo v = (BazTwo)(z);
|
|
v = (BazTwo)(w);
|
|
z = (Baz)(v);
|
|
w = (int[2])(v);
|
|
}
|