Commit 656f5b97 authored by Ian Romanick's avatar Ian Romanick
Browse files

glsl-1.10: Add test for preprocessor division by zero

Reproduces Mesa bug #32831.
parent b70d60cc
// [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