glsl/glcpp: Add testing for directives preceded by a space

This test simply has one of each directive, all of which are preceded by a
single space character.
This commit is contained in:
Carl Worth 2014-07-28 09:38:30 -07:00
parent da7f226a27
commit 9e45fb6f51
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/* Any directive can be preceded by a space. */
#version 300
#pragma Testing spaces before hash
#
#line 3
#define FOO
#ifdef FOO
yes
#endif
#if 0
#elif defined FOO
yes again
#endif
#if 0
#else
for the third time, yes!
#endif
#undef FOO
#ifndef FOO
yes, of course
#endif

View file

@ -0,0 +1,22 @@
#version 300
#pragma Testing spaces before hash
#line 3
yes
yes again
for the third time, yes!
yes, of course