Results for spec/glsl-1.30/if-arg-must-be-defined-02.frag

Overview

Status: fail
Result: fail

Back to summary

Details

Detail Value
returncode 1
time 0.230999946594
note Returncode was 1
errors
  • Successfully compiled fragment shader tests/spec/glsl-1.30\\preprocessor\\if\\if-arg-must-be-defined-02.frag: Fragment shader was successfully compiled to run on hardware.
info
Returncode: 1

Errors:
Successfully compiled fragment shader tests/spec/glsl-1.30\preprocessor\if\if-arg-must-be-defined-02.frag: Fragment shader was successfully compiled to run on hardware.



Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.30
// [end config]
//
// Check that the compiler raises an error when an undefined macro is used as
// an argument to the #elif directive.
//
// From page 11 (17 of pdf) of the GLSL 1.30 spec:
//     "It is an error to use #if or #elif on expressions containing
//     undefined macro names, other than as arguments to the
//     defined operator."

#version 130

#if 1
#	define JUNK 1
#elif UNDEFINED_MACRO
#	define JUNK 1
#endif

int f()
{
	return 0;
}

Back to summary