summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/005-lequal.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/tests/warnings/005-lequal.vert')
-rw-r--r--src/compiler/glsl/tests/warnings/005-lequal.vert17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/005-lequal.vert b/src/compiler/glsl/tests/warnings/005-lequal.vert
new file mode 100644
index 00000000000..73e476a1eb6
--- /dev/null
+++ b/src/compiler/glsl/tests/warnings/005-lequal.vert
@@ -0,0 +1,17 @@
+#version 130
+
+void main()
+{
+ int undefined;
+ int defined = 2;
+ float fooFloat;
+
+ if (undefined <= 0) {
+ fooFloat = 10.0;
+ }
+
+ if (defined <= 0) {
+ fooFloat = 10.0;
+ }
+}
+