blob: f691fd8d49ddd8a90f516824061f944f917bd214 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* [config]
* expect_result: fail
* glsl_version: 1.20
* glsles_version: 1.00
* [end config]
*
* From page 21 (page 27 of the PDF) of the GLSL 1.20 spec:
*
* "An implicitly sized array can be re-declared in the same scope
* as an array of the same base type."
*/
attribute vec4 v;
void main()
{
float a[];
a[3] = 1.2; // Implicitly size "a" to have 4 elements.
{
float a[4]; // this declaration shadows the previous
}
a.length(); // illegal - "a' is not explicitly sized
gl_Position = v;
}
|