1cb93a386Sopenharmony_ciuniform half4 colorGreen, colorRed;
2cb93a386Sopenharmony_ciuniform half2x2 testMatrix2x2;
3cb93a386Sopenharmony_ciuniform half3x3 testMatrix3x3;
4cb93a386Sopenharmony_ci
5cb93a386Sopenharmony_cibool test_equality() {
6cb93a386Sopenharmony_ci    bool ok = true;
7cb93a386Sopenharmony_ci    ok = ok && testMatrix2x2 == half2x2(1,2,3,4);
8cb93a386Sopenharmony_ci    ok = ok && testMatrix3x3 == half3x3(1,2,3,4,5,6,7,8,9);
9cb93a386Sopenharmony_ci    ok = ok && testMatrix2x2 != half2x2(100);
10cb93a386Sopenharmony_ci    ok = ok && testMatrix3x3 != half3x3(9,8,7,6,5,4,3,2,1);
11cb93a386Sopenharmony_ci    return ok;
12cb93a386Sopenharmony_ci}
13cb93a386Sopenharmony_ci
14cb93a386Sopenharmony_cihalf4 main(float2 coords) {
15cb93a386Sopenharmony_ci    return test_equality() ? colorGreen : colorRed;
16cb93a386Sopenharmony_ci}
17