Status: fail
Result: fail
| Detail | Value |
|---|---|
| returncode | 1 |
| time | 0.258223056793 |
| note | Returncode was 1 |
| errors |
|
| command | /home/mks-hackers/piglit/framework/../bin/glslparsertest tests/spec/glsl-1.30/preprocessor/if/if-arg-must-be-defined-02.frag fail 1.30 |
| info | Returncode: 1
Errors:
Successfully compiled fragment shader tests/spec/glsl-1.30/preprocessor/if/if-arg-must-be-defined-02.frag:
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;
}
|