]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/invalid_return.glsl
Add a couple more test cases
[libs/gl.git] / tests / glsl / invalid_return.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 float func()
4 {
5 }
6 void main()
7 {
8         gl_Position = position*func();
9         return 0;
10 }
11
12 /* Expected error:
13 <test>:3: Missing return statement at the end of a function not returning 'void'
14 <test>:9: Return expression type 'int' is incompatible with declared return type 'void'
15 */