repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
compiler
/
arithmetic-operators
/
division-by-zero-01.frag
blob
ab6b86d5c48835e93928751c1f84a0f1c8fe5d6c
1
// [config]
2
// expect_result: pass
3
// glsl_version: 1.20
4
// [end config]
5
//
6
// Division by zero is legal for floating point values.
7
//
8
// From section 5.9 of the GLSL 1.20 spec:
9
// Dividing by zero does not cause an exception but does result in an
10
// unspecified value.
11
12
#version 120
13
14
float
15
f() {
16
float x = 1.0 / 0.0;
17
return x;
18
}
19