Commit a0480f8c authored by Vinson Lee's avatar Vinson Lee

glsl-1.10: Add test for preprocessor modulus by zero.

Reproduces Mesa bug #33507.
parent e1f472d0
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
// The C preprocessor is supposed to generate an error for division by zero,
// and the GLSL spec says that the GLSL preprocessor behaves like the C
// preprocessor.
#if 1 % 0
/* empty */
void main()
gl_Position = vec4(0.0);
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