Results for spec/glsl-1.10/compiler/qualifiers/fn-out-array-prohibited-cstyle.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 1.06087017059
note
Returncode was 1
command
/home/airlied/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.10/compiler/qualifiers/fn-out-array-prohibited-cstyle.frag fail 1.10
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.10/compiler/qualifiers/fn-out-array-prohibited-cstyle.frag: Fragment shader was successfully compiled to run on hardware.
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.10/compiler/qualifiers/fn-out-array-prohibited-cstyle.frag: Fragment shader was successfully compiled to run on hardware.



Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
//
// Check that an array can't be used as a function out parameter in
// GLSL 1.10.
//
// In this test, the array is declared using C-style array
// declaration syntax (float x[2] as opposed to float[2] x).
//
// From section 5.8 of the GLSL 1.10 spec:
//     Other binary or unary expressions, non-dereferenced arrays,
//     function names, swizzles with repeated fields, and constants
//     cannot be l-values.

#version 110

void f(out float x[2])
{
}

Back to summary