summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-3.00/compiler/undef-__FILE__.vert
blob: 930d1b408ee434a0d0d194d9fb3c09f759e604ac (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 __FILE__

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