mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 12:00:30 +01:00
It's really hard to believe that this case has been broken, but apparently no test previously exercised it. So this commit adds such a test and fixes it by making a copy of the argument token-list before expanding it. This fix causes the following glean tests to now pass: glsl1-Preprocessor test 6 (#if 0, #define macro) glsl1-Preprocessor test 7 (multi-line #define)
2 lines
32 B
C
2 lines
32 B
C
#define double(x) x x
|
|
double(1)
|