]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/unused_function_removal.glsl
Add a unit test framework and some tests for the GLSL compiler
[libs/gl.git] / tests / glsl / unused_function_removal.glsl
diff --git a/tests/glsl/unused_function_removal.glsl b/tests/glsl/unused_function_removal.glsl
new file mode 100644 (file)
index 0000000..67541de
--- /dev/null
@@ -0,0 +1,18 @@
+#pragma MSP stage(vertex)
+layout(location=0) in vec4 position;
+float func()
+{
+       return 3.0;
+}
+void main()
+{
+       gl_Position = position;
+}
+
+/* Expected output: vertex
+layout(location=0) in vec4 position;
+void main()
+{
+       gl_Position = position;
+}
+*/