summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/precision-qualifiers/precision-struct-02.frag
blob: 4dcaa9809084296e424e5611b82a8f3b5ca41dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// [config]
// expect_result: fail
// glsl_version: 1.00
// [end config]
//
// Precision qualifiers cannot be applied to structs.
//
// This test declares the struct, but none of its members, with a precision
// qualifier.
//
// See section 4.5.2 of the GLSL 1.00 spec.

#version 100

lowp struct s {
	float a;
};

float f() {
	return 0.0;
}