Results for spec/glsl-1.30/compiler/switch-statement/switch-case-empty-end.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 1.26155996323
note
Returncode was 1
command
/home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.30/compiler/switch-statement/switch-case-empty-end.vert fail 1.30
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.30/compiler/switch-statement/switch-case-empty-end.vert: Vertex shader was successfully compiled to run on hardware.
  • WARNING: 0:15: warning(#316) There should be some statements between a label and the end of the switch statement.
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/spec/glsl-1.30/compiler/switch-statement/switch-case-empty-end.vert: Vertex shader was successfully compiled to run on hardware.
 WARNING: 0:15: warning(#316) There should be some statements between a label and the end of the switch statement.


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.30
// [end config]
//
// From page 57 (page 63 of the PDF) of the GLSL 1.30 spec:
//
//     "Fall through labels are allowed, but it is an error to have no
//     statement between a label and the end of the switch statement."
 
#version 130

void main() {
   switch (1) {
   case 0:
   }

   gl_Position = vec4(0.0);
}

Back to summary