summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/preprocessor.edge_cases.vert
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/glslang/src/Test/preprocessor.edge_cases.vert')
-rw-r--r--chromium/third_party/glslang/src/Test/preprocessor.edge_cases.vert15
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/preprocessor.edge_cases.vert b/chromium/third_party/glslang/src/Test/preprocessor.edge_cases.vert
new file mode 100644
index 00000000000..ebea94f2eaf
--- /dev/null
+++ b/chromium/third_party/glslang/src/Test/preprocessor.edge_cases.vert
@@ -0,0 +1,15 @@
+#version 310 es
+#define X(Y) /*
+ */ Y + 2
+
+#define Y(Z) 2 * Z// asdf
+
+#define Z(Y) /*
+ */ \
+ 2 /*
+ */ + 3 \
+ * Y
+
+void main() {
+ gl_Position = vec4(X(3) + Y(4) + Z(2));
+}