[Piglit] [PATCH 1/3] arb_shading_language_420pack: Test too few elements in named struct initializer
Ian Romanick
idr at freedesktop.org
Wed Jul 3 18:52:39 PDT 2013
The series is
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
On 07/03/2013 02:10 PM, Matt Turner wrote:
> ---
> ...egate-initializer-named-struct-too-few-fields.frag | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
> create mode 100644 tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-named-struct-too-few-fields.frag
>
> diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-named-struct-too-few-fields.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-named-struct-too-few-fields.frag
> new file mode 100644
> index 0000000..f5cccaf
> --- /dev/null
> +++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-named-struct-too-few-fields.frag
> @@ -0,0 +1,19 @@
> +/* [config]
> + * expect_result: fail
> + * glsl_version: 1.30
> + * require_extensions: GL_ARB_shading_language_420pack
> + * [end config]
> + */
> +
> +#version 130
> +#extension GL_ARB_shading_language_420pack: enable
> +
> +void main() {
> + // Illegal since e has 2 fields, but 1 given as initializer
> + struct S {
> + float a;
> + int b;
> + };
> + S e = { 1.2 };
> + gl_FragColor = vec4(1.0);
> +}
>
More information about the Piglit
mailing list