Add an expected file for 094-divide-by-zero-short-circuit
authorCarl Worth <cworth@cworth.org>
Thu, 14 Apr 2011 21:35:11 +0000 (14:35 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 14 Apr 2011 21:42:52 +0000 (14:42 -0700)
commitd3c6ed382d8e02cd9f9e2cc77208b800abe17d54
tree290b86b06668eed6917c4920e1c9d50cd5c42a61
parentea3b2560b1dd0585fcf82a5d3179826374ae03b2
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).
src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c
src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected [new file with mode: 0644]