Commit bba2c28b authored by Ian Romanick's avatar Ian Romanick

Test void function returning the value of a void function

This reproduces Mesa bug #33308.  The crazy thing is that this is
*NOT* illegal.  The return type is void, and the return "value" has
the type void.  Madness.
parent 4aa277c9
// [config]
// expect_result: pass
// glsl_version: 1.10
// [end config]
#ifdef GL_ES
precision mediump float;
#endif
void A(int i) { }
void B(int i) {
// This is crazy, but not technically illegal. The value of A(i) has
// void type, and the return type of the function is void.
return A(i);
}
attribute vec4 vertex;
void main() {
B(1);
gl_Position = vertex;
}
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