yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
f5ebfb5f
16.6.0
1#version 400 2 3const bool flag = false ; 4 5int c = 0 ; 6 7void bar () 8{ 9if ( flag ) 10++ c ; // should still show up in AST 11else 12++ c ; 13 14flag ? ++ c : ++ c ; // both should still show up in AST 15 16switch ( c ) { 17case 1 : 18++ c ; 19break ; 20++ c ; // should still show up in AST 21case 2 : 22break ; 23++ c ; // should still show up in AST 24default : 25break ; 26} 27 28for ( int i = 0 ; i < 0 ; ++ i ) 29++ c ; // should still show up in AST 30 31for ( int i = 0 ; i < 10 ; ++ i ) { 32if ( c < 3 ) { 33break ; 34++ c ; // should still show up in AST 35} else { 36continue ; 37++ c ; // should still show up in AST 38} 39} 40 41return ; 42 43++ c ; // should still show up in AST 44} 45 46int foo () // not called, but should still show up in AST 47{ 48if ( c > 4 ) { 49return 4 ; 50++ c ; // should still show up in AST 51} 52 53return 5 ; 54 55++ c ; // should still show up in AST 56}