Results for spec@glsl-1.20@compiler@structure-and-array-operations@embedded-struct-01.vert

Overview

Result: fail

Back to summary

Details

Detail Value
Returncode 1
Time 0:00:00.145084
Stdout
Shader source:
/* [config]
 * expect_result: fail
 * glsl_version: 1.20
 * [end config]
 *
 * From section 4.1.8 ("Structures") of the GLSL 1.20 spec:
 *
 *     "Anonymous structures are not supported. Embedded structures
 *     are not supported.
 *
 *         struct S { float f; };
 *
 *         struct T {
 *             S;              // Error: anonymous structures disallowed
 *             struct { ... }; // Error: embedded structures disallowed
 *             S s;            // Okay: nested structures with name are allowed
 *         };"
 */
#version 120

struct T {
    struct { float f; } s; // Error: embedded structures disallowed
};

void main()
{
    gl_Position = vec4(1);
}

Stderr
Successfully compiled vertex shader /Users/vlee/workspace/piglit/tests/spec/glsl-1.20/compiler/structure-and-array-operations/embedded-struct-01.vert: (no compiler output)
Environment
PIGLIT_SOURCE_DIR="/Users/vlee/workspace/piglit" PIGLIT_PLATFORM="mixed_glx_egl"
Command /Users/vlee/workspace/piglit/bin/glslparsertest /Users/vlee/workspace/piglit/tests/spec/glsl-1.20/compiler/structure-and-array-operations/embedded-struct-01.vert fail 1.20
dmesg

        

Back to summary