summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/025-function-parameters.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/tests/warnings/025-function-parameters.vert')
-rw-r--r--src/compiler/glsl/tests/warnings/025-function-parameters.vert16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/025-function-parameters.vert b/src/compiler/glsl/tests/warnings/025-function-parameters.vert
new file mode 100644
index 00000000000..0b7f7e5b182
--- /dev/null
+++ b/src/compiler/glsl/tests/warnings/025-function-parameters.vert
@@ -0,0 +1,16 @@
+#version 130
+
+void foo(float normalVar, out float outVar, inout float inoutVar)
+{
+ outVar = 1.0f;
+}
+
+void main()
+{
+ float undefinedFloat;
+ float noRaise;
+ float undefinedFloat2;
+
+ foo(undefinedFloat, noRaise, undefinedFloat2);
+}
+