aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/shaders/CorrectPreprocess11.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/shaders/CorrectPreprocess11.frag')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/shaders/CorrectPreprocess11.frag68
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/shaders/CorrectPreprocess11.frag b/tests/spec/glsl-es-1.00/compiler/shaders/CorrectPreprocess11.frag
new file mode 100644
index 00000000..86eb1c5b
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/shaders/CorrectPreprocess11.frag
@@ -0,0 +1,68 @@
+#if 0
+
+#define f 1.2
+
+#elif 1
+
+#define f 1.4
+
+#endif
+
+
+
+#if 2
+
+#define q 8.9
+
+#endif
+
+
+
+
+#if 0
+these tokens will be ignored
+
+#else tokens to be ignored
+#define f 4.5
+
+#endif
+
+
+
+#if 1
+
+#else
+
+#endif
+
+
+
+#define pine
+
+
+#ifdef pine please raise a warning
+
+#else
+
+#endif
+
+
+
+#ifndef pine
+
+ignore these tokens too
+
+#elif 1
+#define f 3.4
+
+#endif
+
+
+
+void main()
+
+{
+
+ gl_FragColor = vec4(f);
+
+}