diff options
author | Carl Worth <cworth@cworth.org> | 2010-07-20 13:16:17 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-07-20 17:01:11 -0700 |
commit | 17f9beb6c313b41ca08984add7b76ecb84a7339e (patch) | |
tree | aaea6e59801dc4f1fd7ffed1fb7a3cb35d9412ed /src/glsl/glcpp/tests | |
parent | 61ebc01dfecda0963a184e881ea966e2d92f0519 (diff) |
glcpp: Support #if(expression) with no intervening space.
And add a test case to ensure that this works.
Diffstat (limited to 'src/glsl/glcpp/tests')
-rw-r--r-- | src/glsl/glcpp/tests/066-if-nospace-expression.c | 3 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/066-if-nospace-expression.c.expected | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/066-if-nospace-expression.c b/src/glsl/glcpp/tests/066-if-nospace-expression.c new file mode 100644 index 0000000000..3b0b47349d --- /dev/null +++ b/src/glsl/glcpp/tests/066-if-nospace-expression.c @@ -0,0 +1,3 @@ +#if(1) +success +#endif diff --git a/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected b/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected new file mode 100644 index 0000000000..0e84a7cda3 --- /dev/null +++ b/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected @@ -0,0 +1,4 @@ + +success + + |