1group declarations "Declarations" 2 3 case missing_variable_name 4 version 300 es 5 both "" 6 #version 300 es 7 precision mediump int; 8 ${DECLARATIONS} 9 void main() 10 { 11 int; 12 ${OUTPUT} 13 } 14 "" 15 end 16 17 case comma_preceding_variable 18 version 300 es 19 both "" 20 #version 300 es 21 precision mediump int; 22 ${DECLARATIONS} 23 void main() 24 { 25 int ,a; 26 ${OUTPUT} 27 } 28 "" 29 end 30 31 case comma_following_variable 32 version 300 es 33 expect compile_fail 34 both "" 35 #version 300 es 36 precision mediump int; 37 ${DECLARATIONS} 38 void main() 39 { 40 int a,; 41 ${OUTPUT} 42 } 43 "" 44 end 45 46 case struct_missing_attribute_name 47 version 300 es 48 expect compile_fail 49 both "" 50 #version 300 es 51 precision mediump int; 52 ${DECLARATIONS} 53 void main() 54 { 55 struct Data { int; }; 56 ${OUTPUT} 57 } 58 "" 59 end 60 61 case struct_comma_preceding_attribute 62 version 300 es 63 expect compile_fail 64 both "" 65 #version 300 es 66 precision mediump int; 67 ${DECLARATIONS} 68 void main() 69 { 70 struct Data { int ,a; }; 71 ${OUTPUT} 72 } 73 "" 74 end 75 76end # invalid_declarations 77