Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mesa
piglit
Commits
a0480f8c
Commit
a0480f8c
authored
Jan 25, 2011
by
Vinson Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glsl-1.10: Add test for preprocessor modulus by zero.
Reproduces Mesa bug #33507.
parent
e1f472d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
tests/spec/glsl-1.10/preprocessor/modulus-by-zero.vert
tests/spec/glsl-1.10/preprocessor/modulus-by-zero.vert
+17
-0
No files found.
tests/spec/glsl-1.10/preprocessor/modulus-by-zero.vert
0 → 100644
View file @
a0480f8c
// [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 */
#endif
void
main
()
{
gl_Position
=
vec4
(
0
.
0
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment