mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Named vector component access would not fold at compile time. #1574
This commit is contained in:
@@ -9,3 +9,14 @@ fn void! swizzle_test()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
fn int main()
|
||||
{
|
||||
int[<2>] $test = {3, 3};
|
||||
int[<2>] $test2 = {4, 4};
|
||||
$if ($test2.x != $test.x):
|
||||
y++; // #error: did you spell it
|
||||
$endif
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user