1#version 460 2 3// This tests that the preprocessor error 4// "error: '#' : (#) can be preceded in its line only by spaces or horizontal tab" 5// isn't enforced when inactive (e.g. inside #if 0) 6 7#if 0 8#define STRINGIFY(X) #X 9#endif 10 11#define C 0 12 13#if 1 14#ifdef A 15#elif defined B 16#elif C 17// OK, since preprocessor evaluates to inactive 18#define STRINGIFY(X) #X 19#endif 20#endif 21 22// OK in comments 23// #define STRINGIFY(X) #X 24 25void main() 26{ 27 gl_Position = vec4(1.0); 28}