You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
251 lines
3.1 KiB
251 lines
3.1 KiB
# WARNING: This file is auto-generated. Do NOT modify it manually, but rather
|
|
# modify the generating script file. Otherwise changes will be lost!
|
|
|
|
case operator_modulo
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value % 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_bitwise_not
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value = ~value;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_bitwise_shift_left
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value << 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_bitwise_shift_right
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value >> 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_bitwise_and
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value & 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_bitwise_xor
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value ^ 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_bitwise_or
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value | 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_assign_modulo
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value %= 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_assign_shift_left
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value <<= 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_assign_shift_right
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value >>= 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_assign_and
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value &= 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_assign_xor
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value ^= 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|
|
case operator_assign_or
|
|
expect compile_fail
|
|
values {}
|
|
|
|
both ""
|
|
precision mediump float;
|
|
precision mediump int;
|
|
|
|
${DECLARATIONS}
|
|
|
|
void main()
|
|
{
|
|
${SETUP}
|
|
int value = 100;
|
|
value |= 1;
|
|
${OUTPUT}
|
|
}
|
|
""
|
|
end
|