Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.288825035095 |
| note | Returncode was 1 |
| command | /home/mks-hackers/piglit/framework/../bin/glslparsertest tests/glslparsertest/glsl2/return-conversion.frag fail 1.10 |
| errors |
|
| info | Returncode: 1
Errors:
Successfully compiled fragment shader tests/glslparsertest/glsl2/return-conversion.frag: 0(14) : warning C7011: implicit cast from "int" to "float"
Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]
/* FAIL - no implicit conversions for return values */
float foo()
{
int x = 1;
return x;
}
void main()
{
gl_FragColor = vec4(0.0, foo(), 0.0, 0.0);
}
|