mesa/src/glsl/glcpp/tests/089-redefine-macro-error.c
Carl Worth 105e2137d6 glcpp: Add two new tests for testing redefined macros.
The specification says that redefining a macro is an error, unless the
new definitions is identical to the old one, (identical replacement
lists but ignoring differing amounts of whitespace).
2010-08-17 23:41:53 -07:00

17 lines
224 B
C

#define x y
#define x z
#define abc 123
#define abc() 123
#define foo() bar
#define foo(x) bar
#define bar() baz
#define bar baz
#define biff(a,b) a+b
#define biff(a,b,c) a+b
#define oper(a,b) a+b
#define oper(a,b) a*b