--- /dev/null
+#pragma MSP stage(vertex)
+layout(location=0) in vec4 position;
+float func()
+{
+}
+void main()
+{
+ gl_Position = position*func();
+ return 0;
+}
+
+/* Expected error:
+<test>:3: Missing return statement at the end of a function not returning 'void'
+<test>:9: Return expression type 'int' is incompatible with declared return type 'void'
+*/