Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / noMatchingFunction.frag
1 #version 330
2
3 struct S
4 {
5         float a;
6 };
7
8 float func(S s)
9 {
10         return s.a;
11 }
12
13 layout(location = 0) out vec4 o_color;
14
15 void main()
16 {
17         float c = func(1.0f); // ERROR: no matching function
18         o_color = vec4(c);
19 }