1cb93a386Sopenharmony_ciuniform half4 colorGreen, colorRed;
2cb93a386Sopenharmony_ci
3cb93a386Sopenharmony_ciconst int3 values = int3(1);
4cb93a386Sopenharmony_ci
5cb93a386Sopenharmony_ciinline int indexVector(int index) {
6cb93a386Sopenharmony_ci    return values[index];
7cb93a386Sopenharmony_ci}
8cb93a386Sopenharmony_ci
9cb93a386Sopenharmony_cihalf4 main(float2 coords) {
10cb93a386Sopenharmony_ci    int ok = indexVector(0) + indexVector(1) + indexVector(2);
11cb93a386Sopenharmony_ci    int undefined = indexVector(-1) + indexVector(3);
12cb93a386Sopenharmony_ci    return colorGreen;
13cb93a386Sopenharmony_ci}
14