Commit 43014970 authored by Ian Romanick's avatar Ian Romanick
Browse files

glsl-1.10: Add macro redefinition tests

Test that redefining empty macros works and doesn't crash the GLSL
compiler.

Reproduces bugzilla #32695.
parent 580058ed
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#define A
#define A 1
/* Some compilers generate spurious errors if a shader does not contain
* any code or declarations.
*/
int foo(void) { return 1; }
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
#define A 1
#define A
/* Some compilers generate spurious errors if a shader does not contain
* any code or declarations.
*/
int foo(void) { return 1; }
// [config]
// expect_result: pass
// glsl_version: 1.10
// [end config]
#define A
#define A
#define B 1
#define B 1
/* Some compilers generate spurious errors if a shader does not contain
* any code or declarations.
*/
int foo(void) { return 1; }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment