summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp/tests/100-macro-with-colon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/glcpp/tests/100-macro-with-colon.c')
-rw-r--r--src/compiler/glsl/glcpp/tests/100-macro-with-colon.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/tests/100-macro-with-colon.c b/src/compiler/glsl/glcpp/tests/100-macro-with-colon.c
new file mode 100644
index 00000000000..31dbb9a9edc
--- /dev/null
+++ b/src/compiler/glsl/glcpp/tests/100-macro-with-colon.c
@@ -0,0 +1,7 @@
+#define one 1
+#define two 2
+
+switch (1) {
+ case one + two:
+ break;
+}