]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/unary_operators.glsl
Assign a result type to all expressions
[libs/gl.git] / tests / glsl / unary_operators.glsl
diff --git a/tests/glsl/unary_operators.glsl b/tests/glsl/unary_operators.glsl
new file mode 100644 (file)
index 0000000..a04d24f
--- /dev/null
@@ -0,0 +1,28 @@
+#pragma MSP stage(vertex)
+void main()
+{
+       int i = 0;
+       i = -~i;
+       ++i;
+       --i;
+       i++;
+       i--;
+       bool b = false;
+       b = !b;
+       int arr[3];
+       ++arr[0];
+}
+
+/* Expected output: vertex
+void main()
+{
+       int i = 0;
+       i = -~i;
+       ++i;
+       --i;
+       i++;
+       i--;
+       int arr[3];
+       ++arr[0];
+}
+*/