summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/preprocessor.errors.vert
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/preprocessor.errors.vert')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/preprocessor.errors.vert20
1 files changed, 20 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/preprocessor.errors.vert b/3rdparty/bgfx/3rdparty/glslang/Test/preprocessor.errors.vert
new file mode 100644
index 00000000000..ca83848fa05
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/preprocessor.errors.vert
@@ -0,0 +1,20 @@
+#version 310 es
+
+#define X 1
+
+#if X
+ #ifdef Y
+ #error This should not show up in pp output.
+ #endif
+ #error This should show up in pp output.
+#else
+ #error This should not show up in pp output.
+#endif
+
+#def X
+#if Y
+
+#extension a
+
+int main() {
+}