yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
968c8f8e
main
1#version 300 es 2 3// this file cont\ 4ains no errors other than the #error which are there to see if line numbering for errors is correct 5 6#error e1 7 8float f\ 9oo; // same as 'float foo;' 10 11#error e2 12 13#define MAIN void main() \ 14 { \ 15gl_Position = vec4(foo); \ 16} 17 18#error e3 19 20MAIN 21 22vec4 foo2 (vec4 a ) 23{ 24vec4 b = a ; \ 25return b ; 26} 27 28// aoeuntheo unatehutna \ antaehnathe 29// anteonuth $ natohe " ' 30// anteonuth natohe 31 32#define FOO int/* \ 33*/ goodDecl ; 34 35FOO 36 37#define A int q1 = \ 1 38#define B int q2 = \1 39#define C int q3 = $ 1 40#define D int q4 = @ 1 41 42const highp int a1 = \4 ;// ERROR 43const highp int a2 = @3 ;// ERROR 44const highp int a3 = $4 ;// ERROR 45const highp int a4 = a2 \;// ERROR 46 47A ; 48B ; 49C ; 50D ; 51 52# \ 53 54# \ 55error good continuation 56 57#define AA1 a \ b 58#define AA2 a \\ b 59#define AA3 a \\\ b 60#define AA4 a \\\\ b 61 62// anoetuh nonaetu \\\\\\ 63still in comment 64 65const int abdece = 10 ; 66const int aoeuntaoehu = abd \ 67\ 68\ 69\ 70\ 71\ 72ece ; 73 74float funkyf = \ 75.\ 761 \ 772 \ 783 \ 79e \ 80+ \ 811 \ 827 \ 83;\ 84int funkyh \ 85= \ 860 \ 87x \ 88f \ 894 \ 90; 91int funkyo = \ 920 \ 934 \ 942 \ 95; 96int c = \ 9711 ; 98int d = 1 \ 992 ; 100 101#define FOOM (a ,b ) a + b 102 103#if FO \ 104OM (2 \ 105,\ 1063 ) 107int bar103 = 17 ; 108#endif 109 110// ERROR 111#if FOOM (2 , 1123 ) 113int bar104 = 19 ; 114#endif 115 116// ERROR 117#if FOOM ( 1182 ,3 ) 119int bar105 = 19 ; 120#endif 121 122int bar106 = FOOM (5 ,7 ); 123int bar107 = FOOM // okay 124 ( 1252 126 , 1273 128 ) 129 ; 130 131void foo203209409 () 132{ 133bar107 \ 134+= 37 ; 135bar107 * \ 136= 38 ; 137bar107 /=\ 13839 ; 139bar107 + \ 14041 ; 141} 142 143#define QUOTE "ab\ 144cd" 145 146void foo230920394 () 147{ 148// syntax error 149bar107 + \ 150= 42 ; 151}