summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.20/compiler/out-of-bounds-access/vs-mat4-out-of-bounds-const-2.vert
blob: f5d5ef2e82544fa388f56e99db6620770ee6ff44 (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.20
// [end config]

/* From section 5.6 "Matrix Components" of the GLSL 1.20 spec:
 *
 *  "It is an error to access a matrix with a constant expression
 *   that is outside the bounds of thematrix."
 */

#version 120

void main()
{
    mat4 mat = mat4(1.0);
    mat[255];
}