summaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/struct-01.vert
blob: 198b14cb2c1d876dd7c02597dd9758f0a10e6fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// [config]
// expect_result: fail
// glsl_version: 1.10
//
// [end config]

/* FAIL - structure name conflicts with function name */

vec4 foo(vec4 a, vec4 b)
{
  return vec4(dot(a, b));
}

struct foo {
  float f;
  int i;
  bool b;
};