summaryrefslogtreecommitdiffstats
path: root/src/glsl/tests/parameters-03.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/tests/parameters-03.glsl')
-rw-r--r--src/glsl/tests/parameters-03.glsl9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/tests/parameters-03.glsl b/src/glsl/tests/parameters-03.glsl
new file mode 100644
index 00000000000..7ec30f80cc6
--- /dev/null
+++ b/src/glsl/tests/parameters-03.glsl
@@ -0,0 +1,9 @@
+/* FAIL - x is redeclared in the function body at the same scope as the
+ * parameter
+ */
+void a(float x, float y)
+{
+ float x;
+
+ x = y;
+}