• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 colorGreen;
4uniform vec4 colorRed;
5int glob;
6struct S {
7    int i;
8};
9bool block_variable_hides_global_variable_b() {
10    return glob == 2;
11}
12bool local_variable_hides_struct_b() {
13    bool S = true;
14    return S;
15}
16bool local_struct_variable_hides_struct_type_b() {
17    S S = S(1);
18    return S.i == 1;
19}
20bool local_variable_hides_global_variable_b() {
21    int glob = 1;
22    return glob == 1;
23}
24vec4 main() {
25    glob = 2;
26    bool _0_var = true;
27    return (((_0_var && block_variable_hides_global_variable_b()) && local_variable_hides_struct_b()) && local_struct_variable_hides_struct_type_b()) && local_variable_hides_global_variable_b() ? colorGreen : colorRed;
28}
29