summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-3.00/compiler/undef-__VERSION__.vert
blob: 5ef1806958e451f969cf8b5899bc8c1bf8c8b088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 300 es

/* [config]
 * expect_result: fail
 * glsl_version: 3.00
 * [end config]
 *
 * Section 3.4 (Preprocessor) of the OpenGL ES Shading Language 3.00 spec
 * says:
 *
 *     "It is an error to undefine or to redefine a built-in (pre-defined)
 *     macro name."
 */

#undef __VERSION__

void main() { gl_Position = vec4(0); }