summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.10/compiler/initialization-incompatible-type-propagation-1.frag
blob: df102c754a6f27e30228af463cc3f53f99d22a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// [config]
// expect_result: fail
// glsl_version: 1.10
// [end config]
//
// Initializing a variable using the variable with a wrong type
// should not affect the type of the variable being initialized.
// While we cannot check emitted error message the test at least
// should not crash, see bug:
// https://bugs.freedesktop.org/show_bug.cgi?id=107547

#version 110

void f() {
    vec4 a = vec2(0.0);
    a.w -= 1.0;
}