Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.199601173401 |
| note | Returncode was 1 |
| command | /home/mks-hackers/piglit/framework/../bin/glslparsertest tests/glslparsertest/glsl2/return-conversion-2.frag fail 1.10 |
| errors |
|
| info | Returncode: 1
Errors:
Successfully compiled fragment shader tests/glslparsertest/glsl2/return-conversion-2.frag: 0(14) : warning C7011: implicit cast from "float" to "vec2"
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 */
vec2 foo()
{
float x = 2.0;
return x;
}
void main()
{
gl_FragColor = vec4(0.0, foo(), 0.0);
}
|