mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add struct swizzle test.
This commit is contained in:
committed by
Christoffer Lerno
parent
fbac2d6df3
commit
74a6e9f0c0
11
test/test_suite/vector/swizzle_struct.c3
Normal file
11
test/test_suite/vector/swizzle_struct.c3
Normal file
@@ -0,0 +1,11 @@
|
||||
struct Vector4 @packed @align(4)
|
||||
{
|
||||
inline float[<4>] value;
|
||||
}
|
||||
|
||||
fn int main(String[] args)
|
||||
{
|
||||
Vector4 value;
|
||||
float[<2>] x = value.xy;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user