summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag')
-rw-r--r--tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag b/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag
new file mode 100644
index 000000000..8a90994e5
--- /dev/null
+++ b/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag
@@ -0,0 +1,17 @@
+#version 300 es
+
+/* [config]
+ * expect_result: pass
+ * glsl_version: 3.00
+ * [end config]
+ */
+
+precision mediump float;
+
+const float f = cos(0.0);
+out vec4 fragdata;
+
+void main()
+{
+ fragdata = vec4(f);
+}