summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/082-invalid-paste.c
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2012-11-28 12:57:09 -0800
committerCarl Worth <[email protected]>2012-11-29 13:03:01 -0800
commitc86eb0cd65f04a242952bfc610d80341673b3d52 (patch)
tree44282439429be31053fc706af97d1990ec06a6d2 /src/glsl/glcpp/tests/082-invalid-paste.c
parent01b83171c9d5529a9660ba404cc059daa318fc64 (diff)
glcpp: Extend the invalid-paste test
The current code lets a few invalid pastes through, such as an string pasted onto the end of an integer. Extend the invalid-paste test to catch some of these. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests/082-invalid-paste.c')
-rw-r--r--src/glsl/glcpp/tests/082-invalid-paste.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/082-invalid-paste.c b/src/glsl/glcpp/tests/082-invalid-paste.c
index 40bf64411c5..8b84d50c3a0 100644
--- a/src/glsl/glcpp/tests/082-invalid-paste.c
+++ b/src/glsl/glcpp/tests/082-invalid-paste.c
@@ -1,2 +1,7 @@
#define PASTE(x,y) x ## y
PASTE(<,>)
+PASTE(0,abc)
+PASTE(1,=)
+PASTE(2,@)
+PASTE(3,-4)
+PASTE(4,+5.2)