aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/local-function-02.frag
blob: d5c67bfc5d320adbdff75886cf474713cfd23f9a (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
// glsles_version: 1.00
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]

/* FAIL */
#version 120
void main() {
    float foo(float x) {
        return x + 0.5;
    }
    gl_FragColor = vec4(0.0, foo(0.5), 0.0, 1.0);
}