Commit 942b979e authored by Chad Versace's avatar Chad Versace
Browse files

glsl-1.xx: Test that operator '%' is reserved

For language versions:
1.00
1.10
1.20
parent 3000cba1
// [config]
// expect_result: fail
// glsl_version: 1.00
// [end config]
//
// The modulus operator '%' is reserved.
//
// From section 5.9 of the GLSL ES 1.00 spec:
// The operator remainder (%) is reserved for future use.
#version 100
int
f() {
int tea_time = 15 % 24;
return tea_time;
}
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
//
// The modulus operator '%' is reserved.
//
// From section 5.9 of the GLSL 1.10 spec:
// The operator modulus (%) is reserved for future use.
#version 110
int
f() {
int tea_time = 15 % 24;
return tea_time;
}
// [config]
// expect_result: fail
// glsl_version: 1.20
// [end config]
//
// The modulus operator '%' is reserved.
//
// From section 5.9 of the GLSL 1.20 spec:
// The operator modulus (%) is reserved for future use.
#version 120
int
f() {
int tea_time = 15 % 24;
return tea_time;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment