Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.306301116943 |
| note | Returncode was 1 |
| command | /usr/local/src/piglit/framework/../bin/glslparsertest tests/glslparsertest/glsl2/redeclaration-09.vert pass 1.10 |
| errors |
|
| info | Returncode: 1
Errors:
Failed to compile vertex shader tests/glslparsertest/glsl2/redeclaration-09.vert: 0(20) : error C1002: the name "foo" is already defined at 0(15)
0(15) : error C1054: initialization of non-variable "foo"
0(24) : error C1020: invalid operands to "-"
Output:
Shader source:
// [config]
// expect_result: pass
// glsl_version: 1.10
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]
/* PASS - variables and functions have separate namespaces in 1.10.
*
* See also redeclaration-02.vert (other order) and redeclaration-10.vert
* (this fails in 1.20 due to shared namespaces).
*/
float foo()
{
return 0.5;
}
const float foo = 1.0;
void main()
{
gl_Position = vec4(foo - foo());
}
|