summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/027-inout-function-parameter-shaderout.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/tests/warnings/027-inout-function-parameter-shaderout.vert')
-rw-r--r--src/compiler/glsl/tests/warnings/027-inout-function-parameter-shaderout.vert14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/glsl/tests/warnings/027-inout-function-parameter-shaderout.vert b/src/compiler/glsl/tests/warnings/027-inout-function-parameter-shaderout.vert
new file mode 100644
index 00000000000..57ca755be3d
--- /dev/null
+++ b/src/compiler/glsl/tests/warnings/027-inout-function-parameter-shaderout.vert
@@ -0,0 +1,14 @@
+#version 130
+
+void fooFunction(inout float outVar);
+
+out float fooOut;
+
+void main()
+{
+ float willBeDefined;
+
+ fooFunction(willBeDefined);
+ fooOut = willBeDefined;
+}
+