Results for spec/glsl-1.10/preprocessor/pragma-macro-expansion.vert

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.0391139984131
note
Returncode was 1
errors
  • Successfully compiled vertex shader tests/spec/glsl-1.10/preprocessor/pragma-macro-expansion.vert:
command
/home/pniemine/graphics/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.10/preprocessor/pragma-macro-expansion.vert fail 1.10
info
Returncode: 1

Errors:
Successfully compiled vertex shader tests/spec/glsl-1.10/preprocessor/pragma-macro-expansion.vert: 


Output:
Shader source:
/* [config]
 * expect_result: fail
 * glsl_version: 1.10
 * [end config]
 *
 * Page 11 (page 17 of the PDF) of the GLSL 1.10 spec says:
 *
 *     "Tokens following #pragma are not subject to preprocessor macro
 *     expansion."
 *
 * Therefore, debug(FOO) will be recognized as is.  Since debug can only take
 * the parameters "on" or "off", this will generate an error.
 */
#define FOO on
#pragma debug(FOO)

/* Some compilers generate spurious errors if a shader does not contain
 * any code or declarations.
 */
int foo(void) { return 1; }

Back to summary