Files
third_party_mesa3d/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected
Carl Worth d3c6ed382d Add an expected file for 094-divide-by-zero-short-circuit
The expected file here captures the current behavior of glcpp (which
is to generate a division-by-zero error) for this case.

It's easy to argue that it should be short-circuiting the evaluation
and not generating the diagnostic (which happens to be what gcc does).
But it doesn't seem like we should force this behavior on our
pre-processor, (and, as always, the GLSL specification of the
pre-processor is too vague on this point).
2011-04-14 14:42:52 -07:00

16 lines
85 B
Plaintext

0:12(17): preprocessor error: division by 0 in preprocessor directive