From 2ed9563e79670ba2430f0827050e9a851fc56e79 Mon Sep 17 00:00:00 2001 From: Alejandro PiƱeiro Date: Wed, 20 Apr 2016 10:02:45 +0200 Subject: glsl: add unit tests data vertex/expected outcome for uninitialized warning v2: fix 025 test. Add three more tests (Ian Romanick) Reviewed-by: Ian Romanick --- src/compiler/glsl/tests/warnings/003-less.vert | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/compiler/glsl/tests/warnings/003-less.vert (limited to 'src/compiler/glsl/tests/warnings/003-less.vert') diff --git a/src/compiler/glsl/tests/warnings/003-less.vert b/src/compiler/glsl/tests/warnings/003-less.vert new file mode 100644 index 00000000000..bbab55a0419 --- /dev/null +++ b/src/compiler/glsl/tests/warnings/003-less.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; + } +} + -- cgit v1.2.3