Changeset 5f2f2d7 for src/Tests/SynTree
- Timestamp:
- Jun 8, 2015, 8:56:35 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 81419b5
- Parents:
- cd623a4
- Location:
- src/Tests/SynTree
- Files:
-
- 26 edited
-
Expected-SymTab/Array.tst (modified) (4 diffs)
-
Expected-SymTab/Context.tst (modified) (1 diff)
-
Expected-SymTab/Enum.tst (modified) (1 diff)
-
Expected-SymTab/Forall.tst (modified) (8 diffs)
-
Expected-SymTab/Scope.tst (modified) (6 diffs)
-
Expected-SymTab/ScopeErrors.tst (modified) (4 diffs)
-
Expected-SymTab/Tuple.tst (modified) (5 diffs)
-
Expected/Array.tst (modified) (1 diff)
-
Expected/Constant0-1.tst (modified) (1 diff)
-
Expected/Context.tst (modified) (1 diff)
-
Expected/DeclarationSpecifier.tst (modified) (9 diffs)
-
Expected/Enum.tst (modified) (2 diffs)
-
Expected/Forall.tst (modified) (1 diff)
-
Expected/Functions.tst (modified) (12 diffs)
-
Expected/IdentFuncDeclarator.tst (modified) (1 diff)
-
Expected/Initialization.tst (modified) (1 diff)
-
Expected/Scope.tst (modified) (1 diff)
-
Expected/StructMember.tst (modified) (4 diffs)
-
Expected/Tuple.tst (modified) (3 diffs)
-
Expected/TypeGenerator.tst (modified) (4 diffs)
-
Expected/Typedef.tst (modified) (8 diffs)
-
Expected/TypedefDeclarator.tst (modified) (1 diff)
-
Expected/TypedefParamDeclarator.tst (modified) (9 diffs)
-
Expected/VariableDeclarator.tst (modified) (15 diffs)
-
make-rules (modified) (1 diff)
-
run-tests.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Tests/SynTree/Expected-SymTab/Array.tst
rcd623a4 r5f2f2d7 5 5 Adding object m2 6 6 Adding object m4 7 Adding typedef T8 --- Entering scope9 --- Leaving scope containing10 7 Adding function fred 11 8 --- Entering scope … … 16 13 Adding object T 17 14 --- Leaving scope containing 18 T (__T__A0i) (2)19 a1 (__a1__A0i) (2)20 a2 (__a2__A0i) (2)21 a4 (__a4__A0i) (2)22 15 --- Leaving scope containing 23 16 Adding function mary … … 30 23 --- Leaving scope containing 31 24 --- Leaving scope containing 32 T (__T__Pi) (1)33 p1 (__p1__CPi) (1)34 p2 (__p2__Pi) (1)35 p3 (__p3__CPi) (1)36 25 Adding function tom 37 26 --- Entering scope … … 48 37 --- Leaving scope containing 49 38 --- Leaving scope containing 50 T (__T__Pi) (1)51 p1 (__p1__CPi) (1)52 p2 (__p2__Pi) (1)53 p3 (__p3__CPi) (1) -
src/Tests/SynTree/Expected-SymTab/Context.tst
rcd623a4 r5f2f2d7 1 Adding context has_q2 1 --- Entering scope 3 Adding type T4 2 --- Entering scope 5 3 --- Leaving scope containing 4 Adding type T 6 5 Adding function q 7 6 --- Entering scope 8 7 --- Leaving scope containing 9 8 --- Leaving scope containing 10 q (__q__F_2tT_2tT_) (1)11 9 T 10 Adding context has_q 12 11 Adding function f 13 12 --- Entering scope 14 Adding type z15 13 --- Entering scope 16 14 --- Leaving scope containing 17 Adding function q 15 Adding type z 16 Adding function ?=? 18 17 --- Entering scope 19 18 --- Leaving scope containing 20 19 --- Entering scope 21 Adding context has_r22 20 --- Entering scope 21 --- Entering scope 22 --- Leaving scope containing 23 23 Adding type T 24 24 --- Entering scope 25 25 --- Leaving scope containing 26 26 Adding type U 27 --- Entering scope28 --- Leaving scope containing29 27 Adding function r 30 28 --- Entering scope 31 29 --- Leaving scope containing 32 30 --- Leaving scope containing 33 r (__r__F_2tT_2tTPF_2tT_2tT2tU__) (3)34 31 T 35 32 U 33 Adding context has_r 34 --- Entering scope 35 --- Leaving scope containing 36 36 Adding type x 37 37 --- Entering scope 38 38 --- Leaving scope containing 39 39 Adding type y 40 --- Entering scope41 40 --- Leaving scope containing 42 Adding function r43 --- Entering scope44 --- Leaving scope containing45 --- Leaving scope containing46 r (__r__F_2tx_2txPF_2tx_2tx2ty__) (2)47 41 x 48 42 y 49 43 has_r 50 44 --- Leaving scope containing 51 q (__q__F_2tz_2tz_) (1)52 45 z -
src/Tests/SynTree/Expected-SymTab/Enum.tst
rcd623a4 r5f2f2d7 17 17 Adding object fruit 18 18 --- Leaving scope containing 19 Apple (__Apple__C7eFruits) (2)20 Banana (__Banana__C7eFruits) (2)21 Mango (__Mango__C7eFruits) (2)22 Pear (__Pear__C7eFruits) (2)23 fruit (__fruit__7eFruits) (2)24 19 Fruits 25 20 --- Leaving scope containing -
src/Tests/SynTree/Expected-SymTab/Forall.tst
rcd623a4 r5f2f2d7 1 in default case, (shouldn't be here) 2 in default case, (shouldn't be here) 3 Adding typedef f 1 Adding function swap 4 2 --- Entering scope 5 Adding type T6 3 --- Entering scope 7 4 --- Leaving scope containing 8 --- Leaving scope containing9 T10 Adding function swap11 --- Entering scope12 5 Adding type T 6 Adding function ?=? 13 7 --- Entering scope 14 8 --- Leaving scope containing … … 18 12 Adding object temp 19 13 --- Leaving scope containing 20 temp (__temp__2tT) (2)21 14 --- Leaving scope containing 22 left (__left__2tT) (1)23 right (__right__2tT) (1)24 15 T 25 Adding context sumable26 16 --- Entering scope 27 Adding type T28 17 --- Entering scope 29 18 --- Leaving scope containing 19 Adding type T 30 20 Adding object 0 31 21 Adding function ?+? … … 39 29 --- Leaving scope containing 40 30 --- Leaving scope containing 41 0 (__0__C2tT) (1)42 ?++ (__?++__F_2tT_2tT_) (1)43 ?+=? (__?+=?__F_2tT_2tT2tT_) (1)44 ?+? (__?+?__F_2tT_2tT2tT_) (1)45 31 T 46 Adding type T132 Adding context sumable 47 33 --- Entering scope 48 34 --- Leaving scope containing 35 Adding type T1 49 36 Adding object 0 50 37 Adding function ?+? … … 57 44 --- Entering scope 58 45 --- Leaving scope containing 46 --- Entering scope 47 --- Entering scope 48 --- Leaving scope containing 49 Adding type P1 50 --- Entering scope 51 --- Leaving scope containing 52 Adding type P2 53 --- Leaving scope containing 54 P1 55 P2 59 56 Adding type T2 60 57 --- Entering scope 58 --- Leaving scope containing 59 Adding type T3 60 Adding fwd decl for struct __anonymous0 61 --- Entering scope 62 Adding object i 63 Adding object j 64 --- Leaving scope containing 65 Adding struct __anonymous0 66 --- Entering scope 67 --- Entering scope 68 --- Leaving scope containing 61 69 Adding type P1 62 70 --- Entering scope … … 68 76 P1 69 77 P2 70 Adding type T3 78 Adding type T2 79 Adding object w1 80 Adding object g2 71 81 --- Entering scope 72 82 --- Leaving scope containing 73 Adding object 074 Adding function ?+?75 --- Entering scope76 --- Leaving scope containing77 Adding function ?++78 --- Entering scope79 --- Leaving scope containing80 Adding function ?+=?81 --- Entering scope82 --- Leaving scope containing83 Adding struct __anonymous084 --- Entering scope85 Adding object i86 Adding object j87 --- Leaving scope containing88 i (__i__3tP1) (1)89 j (__j__3tP2) (1)90 Adding type T291 --- Entering scope92 Adding type P193 --- Entering scope94 --- Leaving scope containing95 Adding type P296 --- Entering scope97 --- Leaving scope containing98 --- Leaving scope containing99 P1100 P2101 Adding object 0102 Adding function ?+?103 --- Entering scope104 --- Leaving scope containing105 Adding function ?++106 --- Entering scope107 --- Leaving scope containing108 Adding function ?+=?109 --- Entering scope110 --- Leaving scope containing111 Adding object w1112 Adding typedef w2113 --- Entering scope114 --- Leaving scope containing115 Adding object g2116 83 Adding type w3 117 --- Entering scope118 --- Leaving scope containing119 84 Adding object g3 120 85 Adding function sum 121 86 --- Entering scope 122 Adding type T123 87 --- Entering scope 124 88 --- Leaving scope containing 125 Adding object 0 126 Adding function ?+? 127 --- Entering scope 128 --- Leaving scope containing 129 Adding function ?++ 130 --- Entering scope 131 --- Leaving scope containing 132 Adding function ?+=? 89 Adding type T 90 Adding function ?=? 133 91 --- Entering scope 134 92 --- Leaving scope containing … … 138 96 Adding object total 139 97 Adding object i 98 --- Entering scope 140 99 --- Leaving scope containing 141 i (__i__i) (2)142 total (__total__2tT) (2)143 100 --- Leaving scope containing 144 0 (__0__2tT) (1) 145 ?++ (__?++__F_2tT_2tT_) (1) 146 ?+=? (__?+=?__F_2tT_2tT2tT_) (1) 147 ?+? (__?+?__F_2tT_2tT2tT_) (1) 148 a (__a__P2tT) (1) 149 n (__n__i) (1) 101 --- Leaving scope containing 150 102 T 151 103 Adding function twice 152 104 --- Entering scope 105 --- Entering scope 106 --- Leaving scope containing 153 107 Adding type T 108 Adding function ?=? 154 109 --- Entering scope 155 110 --- Leaving scope containing … … 168 123 --- Leaving scope containing 169 124 --- Leaving scope containing 170 0 (__0__C2tT) (1)171 ?++ (__?++__F_2tT_2tT_) (1)172 ?+=? (__?+=?__F_2tT_2tT2tT_) (1)173 ?+? (__?+?__F_2tT_2tT2tT_) (1)174 t (__t__2tT) (1)175 125 T 176 126 Adding function main … … 182 132 Adding object f 183 133 --- Leaving scope containing 184 a (__a__A0i) (2)185 f (__f__f) (2)186 x (__x__i) (2)187 y (__y__i) (2)188 134 --- Leaving scope containing -
src/Tests/SynTree/Expected-SymTab/Scope.tst
rcd623a4 r5f2f2d7 1 in default case, (shouldn't be here)2 in default case, (shouldn't be here)3 in default case, (shouldn't be here)4 1 Adding object x 5 Adding typedef y6 --- Entering scope7 --- Leaving scope containing8 Adding typedef t9 --- Entering scope10 --- Leaving scope containing11 2 Adding object z 12 Adding struct __anonymous03 Adding fwd decl for struct __anonymous0 13 4 --- Entering scope 14 5 Adding object a 15 6 Adding object b 16 7 --- Leaving scope containing 17 a (__a__i) (1) 18 b (__b__d) (1) 19 Adding type u 8 Adding struct __anonymous0 9 --- Entering scope 20 10 --- Entering scope 21 11 --- Leaving scope containing 12 --- Leaving scope containing 13 Adding type u 22 14 Adding function f 23 15 --- Entering scope 24 16 Adding object y 25 17 --- Leaving scope containing 26 y (__y__i) (1)27 18 Adding object q 28 19 Adding function w … … 31 22 Adding object v 32 23 --- Entering scope 33 Adding type x34 24 --- Entering scope 35 25 --- Leaving scope containing 26 Adding type x 36 27 Adding function t 37 28 --- Entering scope … … 40 31 Adding object z 41 32 --- Leaving scope containing 42 t (__t__F_2tx_2tu_) (2)43 u (__u__2tu) (2)44 z (__z__2tx) (2)45 33 x 46 34 --- Leaving scope containing 47 v (__v__2tu) (1)48 y (__y__2ty) (1)49 35 Adding object p 50 Adding context has_u51 36 --- Entering scope 52 Adding type z53 37 --- Entering scope 54 38 --- Leaving scope containing 39 Adding type z 55 40 Adding function u 56 41 --- Entering scope 57 42 --- Leaving scope containing 58 43 --- Leaving scope containing 59 u (__u__F_2tz_2tz_) (1)60 44 z 45 Adding context has_u 61 46 Adding function q 62 47 --- Entering scope 63 Adding type t64 48 --- Entering scope 65 49 --- Leaving scope containing 66 Adding function u 50 Adding type t 51 Adding function ?=? 67 52 --- Entering scope 68 53 --- Leaving scope containing … … 71 56 Adding object y 72 57 --- Leaving scope containing 73 y (__y__2tt) (2)74 58 --- Leaving scope containing 75 the_t (__the_t__2tt) (1)76 u (__u__F_2tt_2tt_) (1)77 59 t 78 60 Adding function f … … 81 63 --- Entering scope 82 64 Adding object y 83 Adding typedef x 65 --- Entering scope 66 Adding object y 67 --- Entering scope 68 Adding object x 69 Adding object z 70 --- Leaving scope containing 71 Adding object x 72 --- Leaving scope containing 73 Adding object q 74 --- Leaving scope containing 75 --- Leaving scope containing 76 Adding function g 77 --- Entering scope 78 --- Entering scope 84 79 --- Entering scope 85 80 --- Leaving scope containing 81 Adding object x 86 82 --- Entering scope 87 83 Adding object y 88 Adding typedef z89 --- Entering scope90 --- Leaving scope containing91 --- Entering scope92 Adding object x93 Adding typedef y94 --- Entering scope95 84 --- Leaving scope containing 96 85 Adding object z 97 86 --- Leaving scope containing 98 x (__x__2tz) (4)99 z (__z__2ty) (4)100 y101 Adding object x102 --- Leaving scope containing103 x (__x__2tz) (3)104 y (__y__2tx) (3)105 z106 Adding object q107 --- Leaving scope containing108 q (__q__2tx) (2)109 y (__y__i) (2)110 x111 --- Leaving scope containing112 p (__p__2ty) (1)113 Adding function g114 --- Entering scope115 --- Entering scope116 Adding typedef x117 --- Entering scope118 --- Leaving scope containing119 Adding object z120 --- Leaving scope containing121 z (__z__2tx) (2)122 x123 87 --- Leaving scope containing 124 88 Adding function q … … 128 92 --- Leaving scope containing 129 93 --- Leaving scope containing 130 i (__i__i) (1) -
src/Tests/SynTree/Expected-SymTab/ScopeErrors.tst
rcd623a4 r5f2f2d7 8 8 Adding object thisIsNotAnError 9 9 --- Leaving scope containing 10 thisIsNotAnError (__thisIsNotAnError__i) (2)11 10 --- Leaving scope containing 12 11 Adding function thisIsAlsoNotAnError … … 16 15 --- Leaving scope containing 17 16 --- Leaving scope containing 18 x (__x__d) (1)19 17 Adding function thisIsStillNotAnError 20 18 --- Entering scope … … 29 27 --- Leaving scope containing 30 28 Adding function butThisIsAnError 31 Error: duplicate definition for thisIsAnError: a signed int 32 Error: duplicate function definition for butThisIsAnError: a function 29 Error: duplicate function definition for butThisIsAnError: function 33 30 with parameters 34 31 double … … 36 33 double 37 34 with body 35 CompoundStmt 38 36 -
src/Tests/SynTree/Expected-SymTab/Tuple.tst
rcd623a4 r5f2f2d7 12 12 Adding object d 13 13 --- Leaving scope containing 14 a (__a__i) (1) 15 b (__b__i) (1) 16 c (__c__Pi) (1) 17 d (__d__Pc) (1) 18 Adding struct inner 14 Adding fwd decl for struct inner 19 15 --- Entering scope 20 16 Adding object f2 21 17 Adding object f3 22 18 --- Leaving scope containing 23 f2 (__f2__i) (1) 24 f3 (__f3__i) (1) 25 Adding struct outer 19 Adding struct inner 20 Adding fwd decl for struct outer 26 21 --- Entering scope 27 22 Adding object f1 23 --- Entering scope 24 --- Leaving scope containing 28 25 Adding object i 29 26 Adding object f4 30 27 --- Leaving scope containing 31 f1 (__f1__i) (1) 32 f4 (__f4__d) (1) 33 i (__i__6sinner) (1) 28 Adding struct outer 29 --- Entering scope 30 --- Leaving scope containing 34 31 Adding object s 32 --- Entering scope 33 --- Leaving scope containing 35 34 Adding object sp 36 35 Adding object t1 … … 42 41 Adding object fmt 43 42 --- Leaving scope containing 44 fmt (__fmt__Pc) (1)45 rc (__rc__i) (1)46 43 Adding function printf 47 44 --- Entering scope 48 45 Adding object fmt 49 46 --- Leaving scope containing 50 fmt (__fmt__Pc) (1)51 47 Adding function f1 52 48 --- Entering scope … … 57 53 --- Leaving scope containing 58 54 --- Leaving scope containing 59 w (__w__i) (1)60 x (__x__s) (1)61 y (__y__Ui) (1)62 55 Adding function g1 63 56 --- Entering scope … … 69 62 Adding object z 70 63 --- Leaving scope containing 71 p (__p__s) (2)72 x (__x__s) (2)73 y (__y__Ui) (2)74 z (__z__Tii_) (2)75 64 --- Leaving scope containing 76 r (__r__Ticli_) (1)77 65 Adding function main 78 66 --- Entering scope … … 85 73 Adding object c 86 74 Adding object d 75 --- Entering scope 76 --- Leaving scope containing 87 77 Adding object t 88 78 --- Leaving scope containing 89 a (__a__i) (2)90 b (__b__i) (2)91 c (__c__i) (2)92 d (__d__i) (2)93 t (__t__6souter) (2)94 79 --- Leaving scope containing 95 argc (__argc__i) (1)96 argv (__argv__PPc) (1)97 rc (__rc__i) (1) -
src/Tests/SynTree/Expected/Array.tst
rcd623a4 r5f2f2d7 1 a1: a open array of signed int 2 a2: a variable length array of signed int 3 a4: a array of Constant Expression: 3signed int 4 m1: a open array of array of Constant Expression: 3signed int 5 m2: a variable length array of variable length array of signed int 6 m4: a array of Constant Expression: 3array of Constant Expression: 3signed int 7 T: a typedef for signed int 8 fred: a function 1 a1: open array of signed int 2 a2: variable length array of signed int 3 a4: array of double with dimension of constant expression 3.0 double 4 m1: open array of array of signed int with dimension of constant expression 3 signed int 5 m2: variable length array of variable length array of signed int 6 m4: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 7 T: typedef for signed int 8 fred: function 9 accepting unspecified arguments 9 10 returning 10 11 signed int 11 12 with body 12 Declaration of a1: a open array of signed int 13 Declaration of a2: a variable length array of signed int 14 Declaration of a4: a array of Constant Expression: 3signed int 15 Declaration of T: a array of Constant Expression: 3signed int 13 CompoundStmt 14 Declaration of a1: open array of signed int 15 Declaration of a2: variable length array of signed int 16 Declaration of a4: array of signed int with dimension of constant expression 3 signed int 17 Declaration of T: array of signed int with dimension of constant expression 3 signed int 16 18 17 mary: afunction19 mary: function 18 20 with parameters 19 T: a array of Constant Expression: 3signed int20 p1: a const array of Constant Expression: 3signed int21 p2: a static array of Constant Expression: 3signed int22 p3: a const static array of Constant Expression: 3signed int21 T: array of signed int with dimension of constant expression 3 signed int 22 p1: const array of signed int with dimension of constant expression 3 signed int 23 p2: static array of signed int with dimension of constant expression 3 signed int 24 p3: const static array of signed int with dimension of constant expression 3 signed int 23 25 returning 24 26 signed int 25 27 with body 28 CompoundStmt 26 29 27 Null Statement 30 tom: function 31 accepting unspecified arguments 32 returning 33 pointer to array of signed int with dimension of constant expression 3 signed int 34 with body 35 CompoundStmt 28 36 29 tom: a function 30 returning 31 pointer to array of Constant Expression: 3signed int 32 with body 33 34 Null Statement 35 36 jane: a function 37 jane: function 38 accepting unspecified arguments 37 39 returning 38 40 pointer to function 39 41 with parameters 40 T: a array of Constant Expression: 3signed int41 p1: a const array of Constant Expression: 3signed int42 p2: a static array of Constant Expression: 3signed int43 p3: a const static array of Constant Expression: 3signed int42 T: array of signed int with dimension of constant expression 3 signed int 43 p1: const array of signed int with dimension of constant expression 3 signed int 44 p2: static array of signed int with dimension of constant expression 3 signed int 45 p3: const static array of signed int with dimension of constant expression 3 signed int 44 46 returning 45 47 signed int 46 48 47 49 with body 50 CompoundStmt 48 51 49 Null Statement50 -
src/Tests/SynTree/Expected/Constant0-1.tst
rcd623a4 r5f2f2d7 1 0: asigned int2 0: aconst signed int3 0: astatic const signed int4 1: asigned int5 1: aconst signed int6 1: astatic const signed int7 0: asigned int8 1: asigned int9 0: aconst signed int10 1: aconst signed int11 0: astatic const signed int12 1: astatic const signed int1 0: signed int 2 0: const signed int 3 0: static const signed int 4 1: signed int 5 1: const signed int 6 1: static const signed int 7 0: signed int 8 1: signed int 9 0: const signed int 10 1: const signed int 11 0: static const signed int 12 1: static const signed int 13 13 struct __anonymous0 14 14 with members 15 i: asigned int15 i: signed int 16 16 17 0: ainstance of struct __anonymous017 0: instance of struct __anonymous0 18 18 struct __anonymous1 19 19 with members 20 i: asigned int20 i: signed int 21 21 22 1: aconst instance of struct __anonymous122 1: const instance of struct __anonymous1 23 23 struct __anonymous2 24 24 with members 25 i: asigned int25 i: signed int 26 26 27 1: astatic const instance of struct __anonymous228 1: asigned int29 0: apointer to signed int30 1: asigned int31 1: asigned int32 0: apointer to signed int33 0: apointer to signed int34 0: apointer to signed int35 0: aconst pointer to signed int36 0: aconst pointer to signed int37 0: aconst pointer to signed int27 1: static const instance of struct __anonymous2 28 1: signed int 29 0: pointer to signed int 30 1: signed int 31 1: signed int 32 0: pointer to signed int 33 0: pointer to signed int 34 0: pointer to signed int 35 0: const pointer to signed int 36 0: const pointer to signed int 37 0: const pointer to signed int 38 38 struct __anonymous3 39 39 with members 40 i: asigned int40 i: signed int 41 41 42 0: apointer to instance of struct __anonymous343 x: apointer to signed int44 0: apointer to signed int45 x: aconst pointer to signed int46 0: aconst pointer to signed int47 x: astatic const pointer to signed int48 0: astatic const pointer to signed int42 0: pointer to instance of struct __anonymous3 43 x: pointer to signed int 44 0: pointer to signed int 45 x: const pointer to signed int 46 0: const pointer to signed int 47 x: static const pointer to signed int 48 0: static const pointer to signed int 49 49 struct __anonymous4 50 50 with members 51 i: asigned int51 i: signed int 52 52 53 0: apointer to instance of struct __anonymous453 0: pointer to instance of struct __anonymous4 54 54 struct __anonymous5 55 55 with members 56 i: asigned int56 i: signed int 57 57 58 0: aconst pointer to instance of struct __anonymous558 0: const pointer to instance of struct __anonymous5 59 59 struct __anonymous6 60 60 with members 61 i: asigned int61 i: signed int 62 62 63 0: astatic const pointer to instance of struct __anonymous664 x: astatic pointer to signed int65 0: astatic pointer to signed int66 x: astatic const pointer to signed int67 0: astatic const pointer to signed int68 x: aconst pointer to pointer to signed int69 0: aconst pointer to pointer to signed int63 0: static const pointer to instance of struct __anonymous6 64 x: static pointer to signed int 65 0: static pointer to signed int 66 x: static const pointer to signed int 67 0: static const pointer to signed int 68 x: const pointer to pointer to signed int 69 0: const pointer to pointer to signed int -
src/Tests/SynTree/Expected/Context.tst
rcd623a4 r5f2f2d7 1 1 context has_q 2 2 with parameters 3 T: atype3 T: type 4 4 5 5 with members 6 q: afunction6 q: function 7 7 with parameters 8 instance of type T 8 instance of type T (not function type) 9 9 returning 10 instance of type T 10 instance of type T (not function type) 11 11 12 12 13 f: a function 14 with forall 15 z: a type 13 f: forall 14 z: type 16 15 with assertions 16 ?=?: function 17 with parameters 18 pointer to instance of type z (not function type) 19 instance of type z (not function type) 20 returning 21 instance of type z (not function type) 22 17 23 instance of context has_q 18 24 with parameters 19 instance of type z 25 instance of type z (not function type) 20 26 21 27 28 function 29 accepting unspecified arguments 22 30 returning 23 31 void 24 32 with body 25 Declaration of context has_r 26 with parameters 27 T: a type 28 U: a type 33 CompoundStmt 34 Declaration of context has_r 35 with parameters 36 T: type 37 U: type 29 38 30 with members31 r: afunction32 with parameters33 instance of type T34 function35 with parameters36 instance of type T37 instance of type U38 returning39 instance of type T39 with members 40 r: function 41 with parameters 42 instance of type T (not function type) 43 function 44 with parameters 45 instance of type T (not function type) 46 instance of type U (not function type) 47 returning 48 instance of type T (not function type) 40 49 41 returning42 instance of type T50 returning 51 instance of type T (not function type) 43 52 44 53 45 Declaration of x: a externtype46 Declaration of y: a externtype47 with assertions48 instance of context has_r49 with parameters50 instance of type x51 instance of type y54 Declaration of x: auto type 55 Declaration of y: auto type 56 with assertions 57 instance of context has_r 58 with parameters 59 instance of type x (not function type) 60 instance of type y (not function type) 52 61 53 62 -
src/Tests/SynTree/Expected/DeclarationSpecifier.tst
rcd623a4 r5f2f2d7 1 Int: atypedef for short signed int2 x1: aconst volatile short signed int3 x2: astatic const volatile short signed int4 x3: astatic const volatile short signed int5 x4: astatic const volatile short signed int6 x4: astatic const volatile short signed int7 x5: astatic const volatile short signed int8 x6: astatic const volatile short signed int9 x7: astatic const volatile short signed int10 x8: astatic const volatile short signed int1 Int: typedef for short signed int 2 x1: const volatile short signed int 3 x2: static const volatile short signed int 4 x3: static const volatile short signed int 5 x4: static const volatile short signed int 6 x4: static const volatile short signed int 7 x5: static const volatile short signed int 8 x6: static const volatile short signed int 9 x7: static const volatile short signed int 10 x8: static const volatile short signed int 11 11 struct __anonymous0 12 12 with members 13 i: asigned int14 15 x10: aconst volatile instance of struct __anonymous013 i: signed int 14 15 x10: const volatile instance of struct __anonymous0 16 16 struct __anonymous1 17 17 with members 18 i: asigned int19 20 x11: aconst volatile instance of struct __anonymous118 i: signed int 19 20 x11: const volatile instance of struct __anonymous1 21 21 struct __anonymous2 22 22 with members 23 i: asigned int24 25 x12: aconst volatile instance of struct __anonymous223 i: signed int 24 25 x12: const volatile instance of struct __anonymous2 26 26 struct __anonymous3 27 27 with members 28 i: asigned int29 30 x13: astatic const volatile instance of struct __anonymous328 i: signed int 29 30 x13: static const volatile instance of struct __anonymous3 31 31 struct __anonymous4 32 32 with members 33 i: asigned int34 35 x14: astatic const volatile instance of struct __anonymous433 i: signed int 34 35 x14: static const volatile instance of struct __anonymous4 36 36 struct __anonymous5 37 37 with members 38 i: asigned int39 40 x15: astatic const volatile instance of struct __anonymous538 i: signed int 39 40 x15: static const volatile instance of struct __anonymous5 41 41 struct __anonymous6 42 42 with members 43 i: asigned int44 45 x16: astatic const volatile instance of struct __anonymous643 i: signed int 44 45 x16: static const volatile instance of struct __anonymous6 46 46 struct __anonymous7 47 47 with members 48 i: asigned int49 50 x17: astatic const volatile instance of struct __anonymous751 x20: a const volatile instance of type Int52 x21: a static const volatile instance of type Int53 x22: a static const volatile instance of type Int54 x23: a static const volatile instance of type Int55 x24: a static const volatile instance of type Int56 x25: a static const volatile instance of type Int57 x26: a static const volatile instance of type Int58 x27: a static const volatile instance of type Int48 i: signed int 49 50 x17: static const volatile instance of struct __anonymous7 51 x20: const volatile instance of type Int (not function type) 52 x21: static const volatile instance of type Int (not function type) 53 x22: static const volatile instance of type Int (not function type) 54 x23: static const volatile instance of type Int (not function type) 55 x24: static const volatile instance of type Int (not function type) 56 x25: static const volatile instance of type Int (not function type) 57 x26: static const volatile instance of type Int (not function type) 58 x27: static const volatile instance of type Int (not function type) 59 59 struct __anonymous8 60 60 with members 61 i: a instance of type Int62 63 x29: aconst volatile instance of struct __anonymous861 i: instance of type Int (not function type) 62 63 x29: const volatile instance of struct __anonymous8 64 64 struct __anonymous9 65 65 with members 66 i: a instance of type Int67 68 x30: aconst volatile instance of struct __anonymous966 i: instance of type Int (not function type) 67 68 x30: const volatile instance of struct __anonymous9 69 69 struct __anonymous10 70 70 with members 71 i: a instance of type Int72 73 x31: aconst volatile instance of struct __anonymous1071 i: instance of type Int (not function type) 72 73 x31: const volatile instance of struct __anonymous10 74 74 struct __anonymous11 75 75 with members 76 i: a instance of type Int77 78 x32: astatic const volatile instance of struct __anonymous1176 i: instance of type Int (not function type) 77 78 x32: static const volatile instance of struct __anonymous11 79 79 struct __anonymous12 80 80 with members 81 i: a instance of type Int82 83 x33: astatic const volatile instance of struct __anonymous1281 i: instance of type Int (not function type) 82 83 x33: static const volatile instance of struct __anonymous12 84 84 struct __anonymous13 85 85 with members 86 i: a instance of type Int87 88 x34: astatic const volatile instance of struct __anonymous1386 i: instance of type Int (not function type) 87 88 x34: static const volatile instance of struct __anonymous13 89 89 struct __anonymous14 90 90 with members 91 i: a instance of type Int92 93 x35: astatic const volatile instance of struct __anonymous1491 i: instance of type Int (not function type) 92 93 x35: static const volatile instance of struct __anonymous14 94 94 struct __anonymous15 95 95 with members 96 i: a instance of type Int 97 98 x36: a static const volatile instance of struct __anonymous15 99 f01: a inline static function 100 returning 101 const volatile signed int 102 103 f02: a inline static function 104 returning 105 const volatile signed int 106 107 f03: a inline static function 108 returning 109 const volatile signed int 110 111 f04: a inline static function 112 returning 113 const volatile signed int 114 115 f05: a inline static function 116 returning 117 const volatile signed int 118 119 f06: a inline static function 120 returning 121 const volatile signed int 122 123 f07: a inline static function 124 returning 125 const volatile signed int 126 127 f08: a inline static function 128 returning 129 const volatile signed int 130 131 f11: a inline static function 132 returning 133 const volatile signed int 134 135 f12: a inline static function 136 returning 137 const volatile signed int 138 139 f13: a inline static function 140 returning 141 const volatile signed int 142 143 f14: a inline static function 144 returning 145 const volatile signed int 146 147 f15: a inline static function 148 returning 149 const volatile signed int 150 151 f16: a inline static function 152 returning 153 const volatile signed int 154 155 f17: a inline static function 156 returning 157 const volatile signed int 158 159 f18: a inline static function 160 returning 161 const volatile signed int 162 163 f21: a inline static function 164 returning 165 const volatile short signed int 166 167 f22: a inline static function 168 returning 169 const volatile short signed int 170 171 f23: a inline static function 172 returning 173 const volatile short signed int 174 175 f24: a inline static function 176 returning 177 const volatile short signed int 178 179 f25: a inline static function 180 returning 181 const volatile short signed int 182 183 f26: a inline static function 184 returning 185 const volatile short signed int 186 187 f27: a inline static function 188 returning 189 const volatile short signed int 190 191 f28: a inline static function 96 i: instance of type Int (not function type) 97 98 x36: static const volatile instance of struct __anonymous15 99 f01: inline static function 100 accepting unspecified arguments 101 returning 102 const volatile signed int 103 104 f02: inline static function 105 accepting unspecified arguments 106 returning 107 const volatile signed int 108 109 f03: inline static function 110 accepting unspecified arguments 111 returning 112 const volatile signed int 113 114 f04: inline static function 115 accepting unspecified arguments 116 returning 117 const volatile signed int 118 119 f05: inline static function 120 accepting unspecified arguments 121 returning 122 const volatile signed int 123 124 f06: inline static function 125 accepting unspecified arguments 126 returning 127 const volatile signed int 128 129 f07: inline static function 130 accepting unspecified arguments 131 returning 132 const volatile signed int 133 134 f08: inline static function 135 accepting unspecified arguments 136 returning 137 const volatile signed int 138 139 f11: inline static function 140 accepting unspecified arguments 141 returning 142 const volatile signed int 143 144 f12: inline static function 145 accepting unspecified arguments 146 returning 147 const volatile signed int 148 149 f13: inline static function 150 accepting unspecified arguments 151 returning 152 const volatile signed int 153 154 f14: inline static function 155 accepting unspecified arguments 156 returning 157 const volatile signed int 158 159 f15: inline static function 160 accepting unspecified arguments 161 returning 162 const volatile signed int 163 164 f16: inline static function 165 accepting unspecified arguments 166 returning 167 const volatile signed int 168 169 f17: inline static function 170 accepting unspecified arguments 171 returning 172 const volatile signed int 173 174 f18: inline static function 175 accepting unspecified arguments 176 returning 177 const volatile signed int 178 179 f21: inline static function 180 accepting unspecified arguments 181 returning 182 const volatile short signed int 183 184 f22: inline static function 185 accepting unspecified arguments 186 returning 187 const volatile short signed int 188 189 f23: inline static function 190 accepting unspecified arguments 191 returning 192 const volatile short signed int 193 194 f24: inline static function 195 accepting unspecified arguments 196 returning 197 const volatile short signed int 198 199 f25: inline static function 200 accepting unspecified arguments 201 returning 202 const volatile short signed int 203 204 f26: inline static function 205 accepting unspecified arguments 206 returning 207 const volatile short signed int 208 209 f27: inline static function 210 accepting unspecified arguments 211 returning 212 const volatile short signed int 213 214 f28: inline static function 215 accepting unspecified arguments 192 216 returning 193 217 const volatile short signed int … … 195 219 struct __anonymous16 196 220 with members 197 i: a signed int 198 199 f31: a inline static function 221 i: signed int 222 223 f31: inline static function 224 accepting unspecified arguments 200 225 returning 201 226 const volatile instance of struct __anonymous16 … … 203 228 struct __anonymous17 204 229 with members 205 i: a signed int 206 207 f32: a inline static function 230 i: signed int 231 232 f32: inline static function 233 accepting unspecified arguments 208 234 returning 209 235 const volatile instance of struct __anonymous17 … … 211 237 struct __anonymous18 212 238 with members 213 i: a signed int 214 215 f33: a inline static function 239 i: signed int 240 241 f33: inline static function 242 accepting unspecified arguments 216 243 returning 217 244 const volatile instance of struct __anonymous18 … … 219 246 struct __anonymous19 220 247 with members 221 i: a signed int 222 223 f34: a inline static function 248 i: signed int 249 250 f34: inline static function 251 accepting unspecified arguments 224 252 returning 225 253 const volatile instance of struct __anonymous19 … … 227 255 struct __anonymous20 228 256 with members 229 i: a signed int 230 231 f35: a inline static function 257 i: signed int 258 259 f35: inline static function 260 accepting unspecified arguments 232 261 returning 233 262 const volatile instance of struct __anonymous20 … … 235 264 struct __anonymous21 236 265 with members 237 i: a signed int 238 239 f36: a inline static function 266 i: signed int 267 268 f36: inline static function 269 accepting unspecified arguments 240 270 returning 241 271 const volatile instance of struct __anonymous21 … … 243 273 struct __anonymous22 244 274 with members 245 i: a signed int 246 247 f37: a inline static function 275 i: signed int 276 277 f37: inline static function 278 accepting unspecified arguments 248 279 returning 249 280 const volatile instance of struct __anonymous22 … … 251 282 struct __anonymous23 252 283 with members 253 i: a signed int 254 255 f38: a inline static function 284 i: signed int 285 286 f38: inline static function 287 accepting unspecified arguments 256 288 returning 257 289 const volatile instance of struct __anonymous23 258 290 259 f41: a inline static function 260 returning 261 const volatile instance of type Int 262 263 f42: a inline static function 264 returning 265 const volatile instance of type Int 266 267 f43: a inline static function 268 returning 269 const volatile instance of type Int 270 271 f44: a inline static function 272 returning 273 const volatile instance of type Int 274 275 f45: a inline static function 276 returning 277 const volatile instance of type Int 278 279 f46: a inline static function 280 returning 281 const volatile instance of type Int 282 283 f47: a inline static function 284 returning 285 const volatile instance of type Int 286 287 f48: a inline static function 288 returning 289 const volatile instance of type Int 290 291 f41: inline static function 292 accepting unspecified arguments 293 returning 294 const volatile instance of type Int (not function type) 295 296 f42: inline static function 297 accepting unspecified arguments 298 returning 299 const volatile instance of type Int (not function type) 300 301 f43: inline static function 302 accepting unspecified arguments 303 returning 304 const volatile instance of type Int (not function type) 305 306 f44: inline static function 307 accepting unspecified arguments 308 returning 309 const volatile instance of type Int (not function type) 310 311 f45: inline static function 312 accepting unspecified arguments 313 returning 314 const volatile instance of type Int (not function type) 315 316 f46: inline static function 317 accepting unspecified arguments 318 returning 319 const volatile instance of type Int (not function type) 320 321 f47: inline static function 322 accepting unspecified arguments 323 returning 324 const volatile instance of type Int (not function type) 325 326 f48: inline static function 327 accepting unspecified arguments 328 returning 329 const volatile instance of type Int (not function type) 330 -
src/Tests/SynTree/Expected/Enum.tst
rcd623a4 r5f2f2d7 1 1 enum Colors 2 2 with members 3 Red: auntyped entity4 Yellow: auntyped entity5 Pink: auntyped entity6 Blue: auntyped entity7 Purple: auntyped entity8 Orange: auntyped entity9 Green: auntyped entity3 Red: untyped entity 4 Yellow: untyped entity 5 Pink: untyped entity 6 Blue: untyped entity 7 Purple: untyped entity 8 Orange: untyped entity 9 Green: untyped entity 10 10 11 f: afunction11 f: function 12 12 with parameters 13 13 void … … 15 15 void 16 16 with body 17 Declaration of enum Fruits 18 with members 19 Apple: a untyped entity 20 Banana: a untyped entity 21 Pear: a untyped entity 22 Mango: a untyped entity 17 CompoundStmt 18 Declaration of enum Fruits 19 with members 20 Apple: untyped entity 21 Banana: untyped entity 22 Pear: untyped entity 23 Mango: untyped entity 23 24 24 Declaration of fruit: a instance of enum Fruits 25 Declaration of fruit: instance of enum Fruits with initializer 26 Simple Initializer: Name: Mango 25 27 28 -
src/Tests/SynTree/Expected/Forall.tst
rcd623a4 r5f2f2d7 1 in default case, (shouldn't be here) 2 in default case, (shouldn't be here) 3 f: a typedef for pointer to function 1 f: typedef for pointer to forall 2 T: type 3 with assertions 4 ?=?: function 5 with parameters 6 pointer to instance of type T (not function type) 7 instance of type T (not function type) 8 returning 9 instance of type T (not function type) 10 11 12 function 4 13 with parameters 5 14 signed int 6 with forall7 T: a type8 15 returning 9 16 signed int 10 17 11 swap: a function 12 with parameters 13 left: a instance of type T 14 right: a instance of type T 15 with forall 16 T: a type 18 swap: forall 19 T: type 20 with assertions 21 ?=?: function 22 with parameters 23 pointer to instance of type T (not function type) 24 instance of type T (not function type) 25 returning 26 instance of type T (not function type) 27 28 29 function 30 with parameters 31 left: instance of type T (not function type) 32 right: instance of type T (not function type) 17 33 returning 18 34 void 19 35 with body 20 Declaration of temp: a instance of type T 21 22 Expression Statement: 23 Applying untyped: 24 Name: ?=? 25 to: 26 Name: left 27 Name: right 28 29 30 Expression Statement: 31 Applying untyped: 32 Name: ?=? 33 to: 34 Name: right 35 Name: temp 36 CompoundStmt 37 Declaration of temp: instance of type T (not function type) with initializer 38 Simple Initializer: Name: left 39 40 Expression Statement: 41 Applying untyped: 42 Name: ?=? 43 ...to: 44 Address of: 45 Name: left 46 Name: right 47 48 Expression Statement: 49 Applying untyped: 50 Name: ?=? 51 ...to: 52 Address of: 53 Name: right 54 Name: temp 36 55 37 56 38 57 context sumable 39 58 with parameters 40 T: atype59 T: type 41 60 42 61 with members 43 0: a const instance of type T44 ?+?: afunction62 0: const instance of type T (not function type) 63 ?+?: function 45 64 with parameters 46 instance of type T 47 instance of type T 65 instance of type T (not function type) 66 instance of type T (not function type) 48 67 returning 49 instance of type T 50 51 ?++: afunction68 instance of type T (not function type) 69 70 ?++: function 52 71 with parameters 53 instance of type T 72 instance of type T (not function type) 54 73 returning 55 instance of type T 56 57 ?+=?: afunction74 instance of type T (not function type) 75 76 ?+=?: function 58 77 with parameters 59 instance of type T 60 instance of type T 78 instance of type T (not function type) 79 instance of type T (not function type) 61 80 returning 62 instance of type T 63 64 65 T1: atype81 instance of type T (not function type) 82 83 84 T1: type 66 85 with assertions 67 0: a const instance of type T168 ?+?: afunction86 0: const instance of type T1 (not function type) 87 ?+?: function 69 88 with parameters 70 instance of type T1 71 instance of type T1 89 instance of type T1 (not function type) 90 instance of type T1 (not function type) 72 91 returning 73 instance of type T1 74 75 ?++: afunction92 instance of type T1 (not function type) 93 94 ?++: function 76 95 with parameters 77 instance of type T1 96 instance of type T1 (not function type) 78 97 returning 79 instance of type T1 80 81 ?+=?: afunction98 instance of type T1 (not function type) 99 100 ?+=?: function 82 101 with parameters 83 instance of type T1 84 instance of type T1 102 instance of type T1 (not function type) 103 instance of type T1 (not function type) 85 104 returning 86 instance of type T1 87 88 89 T2: atype90 with parameters 91 P1: atype92 P2: atype93 94 T3: atype105 instance of type T1 (not function type) 106 107 108 T2: type 109 with parameters 110 P1: type 111 P2: type 112 113 T3: type 95 114 with assertions 96 115 instance of context sumable 97 116 with parameters 98 instance of type T3 117 instance of type T3 (not function type) 99 118 100 119 101 120 struct __anonymous0 102 121 with members 103 i: a instance of type P1104 j: a instance of type P2105 106 T2: atype for instance of struct __anonymous0107 with parameters 108 P1: atype109 P2: atype122 i: instance of type P1 (not function type) 123 j: instance of type P2 (not function type) 124 125 T2: type for instance of struct __anonymous0 126 with parameters 127 P1: type 128 P2: type 110 129 111 130 with assertions 112 131 instance of context sumable 113 132 with parameters 114 instance of type T2 133 instance of type T2 (not function type) 115 134 with parameters 116 instance of type P1 117 instance of type P2 118 119 120 121 w1: a instance of type T2 122 with parameters 123 signed int 124 signed int 125 126 w2: a typedef for instance of type T2 127 with parameters 128 signed int 129 signed int 130 131 g2: a instance of type w2 132 w3: a type for instance of type T2 133 with parameters 134 signed int 135 signed int 136 137 g3: a instance of type w3 138 sum: a function 139 with parameters 140 n: a signed int 141 a: a open array of instance of type T 142 with forall 143 T: a type 135 instance of type P1 (not function type) 136 instance of type P2 (not function type) 137 138 139 140 w1: instance of type T2 (not function type) 141 with parameters 142 signed int 143 signed int 144 145 w2: typedef for instance of type T2 (not function type) 146 with parameters 147 signed int 148 signed int 149 150 g2: instance of type w2 (not function type) 151 w3: type for instance of type T2 (not function type) 152 with parameters 153 signed int 154 signed int 155 156 g3: instance of type w3 (not function type) 157 sum: forall 158 T: type 144 159 with assertions 160 ?=?: function 161 with parameters 162 pointer to instance of type T (not function type) 163 instance of type T (not function type) 164 returning 165 instance of type T (not function type) 166 145 167 instance of context sumable 146 168 with parameters 147 instance of type T 148 149 150 returning 151 instance of type T 169 instance of type T (not function type) 170 171 172 function 173 with parameters 174 n: signed int 175 a: open array of instance of type T (not function type) 176 returning 177 instance of type T (not function type) 152 178 with body 153 Declaration of total: a instance of type T 154 Declaration of i: a signed int 155 156 twice: a function 157 with parameters 158 t: a instance of type T 159 with forall 160 T: a type 179 CompoundStmt 180 Declaration of total: instance of type T (not function type) with initializer 181 Simple Initializer: Name: 0 182 183 Declaration of i: signed int 184 Labels: {} 185 For Statement 186 initialization: 187 Expression Statement: 188 Applying untyped: 189 Name: ?=? 190 ...to: 191 Address of: 192 Name: i 193 Name: 0 194 195 condition: 196 Cast of: 197 Applying untyped: 198 Name: ?!=? 199 ...to: 200 Applying untyped: 201 Name: ?<? 202 ...to: 203 Name: i 204 Name: n 205 Name: 0 206 207 to: 208 signed int 209 210 increment: 211 Applying untyped: 212 Name: ?+=? 213 ...to: 214 Address of: 215 Name: i 216 Name: 1 217 218 statement block: 219 Expression Statement: 220 Applying untyped: 221 Name: ?=? 222 ...to: 223 Address of: 224 Name: total 225 Applying untyped: 226 Name: ?+? 227 ...to: 228 Name: total 229 Applying untyped: 230 Name: ?[?] 231 ...to: 232 Name: a 233 Name: i 234 235 236 Return Statement, returning: Name: total 237 238 239 240 twice: forall 241 T: type 161 242 with assertions 162 0: a const instance of type T 163 ?+?: a function 164 with parameters 165 instance of type T 166 instance of type T 167 returning 168 instance of type T 169 170 ?++: a function 171 with parameters 172 instance of type T 173 returning 174 instance of type T 175 176 ?+=?: a function 177 with parameters 178 instance of type T 179 instance of type T 180 returning 181 instance of type T 182 183 184 returning 185 instance of type T 243 ?=?: function 244 with parameters 245 pointer to instance of type T (not function type) 246 instance of type T (not function type) 247 returning 248 instance of type T (not function type) 249 250 0: const instance of type T (not function type) 251 ?+?: function 252 with parameters 253 instance of type T (not function type) 254 instance of type T (not function type) 255 returning 256 instance of type T (not function type) 257 258 ?++: function 259 with parameters 260 instance of type T (not function type) 261 returning 262 instance of type T (not function type) 263 264 ?+=?: function 265 with parameters 266 instance of type T (not function type) 267 instance of type T (not function type) 268 returning 269 instance of type T (not function type) 270 271 272 function 273 with parameters 274 t: instance of type T (not function type) 275 returning 276 instance of type T (not function type) 186 277 with body 187 188 main: a function 278 CompoundStmt 279 Return Statement, returning: Applying untyped: 280 Name: ?+? 281 ...to: 282 Name: t 283 Name: t 284 285 286 287 main: C function 288 accepting unspecified arguments 189 289 returning 190 290 signed int 191 291 with body 192 Declaration of x: a signed int 193 Declaration of y: a signed int 194 Declaration of a: a array of Constant Expression: 10signed int 195 Declaration of f: a float 196 197 Expression Statement: 198 Applying untyped: 199 Name: swap 200 to: 201 Name: x 202 Name: y 203 204 205 Expression Statement: 206 Applying untyped: 207 Name: twice 208 to: 209 Name: x 210 Name: y 211 212 213 Expression Statement: 214 Applying untyped: 215 Name: ?=? 216 to: 217 Name: f 218 Applying untyped: 219 Name: min 220 to: 221 Constant Expression: 4.0 Constant Expression: 3.0 222 223 Expression Statement: 224 Applying untyped: 225 Name: sum 226 to: 227 Constant Expression: 10 Name: a 228 229 292 CompoundStmt 293 Declaration of x: signed int with initializer 294 Simple Initializer: Name: 1 295 296 Declaration of y: signed int with initializer 297 Simple Initializer: constant expression 2 signed int 298 Declaration of a: array of signed int with dimension of constant expression 10 signed int 299 Declaration of f: float 300 Expression Statement: 301 Applying untyped: 302 Name: swap 303 ...to: 304 Name: x 305 Name: y 306 307 Expression Statement: 308 Applying untyped: 309 Name: twice 310 ...to: 311 Name: x 312 Name: y 313 314 Expression Statement: 315 Applying untyped: 316 Name: ?=? 317 ...to: 318 Address of: 319 Name: f 320 Applying untyped: 321 Name: min 322 ...to: 323 constant expression 4.0 double constant expression 3.0 double 324 Expression Statement: 325 Applying untyped: 326 Name: sum 327 ...to: 328 constant expression 10 signed int Name: a 329 330 -
src/Tests/SynTree/Expected/Functions.tst
rcd623a4 r5f2f2d7 1 h: afunction1 h: function 2 2 with parameters 3 3 void … … 5 5 void 6 6 with body 7 8 f: a function 7 CompoundStmt 8 9 f: function 9 10 with parameters 10 11 function … … 32 33 signed int 33 34 34 g: afunction35 g: function 35 36 with parameters 36 37 void … … 41 42 signed int 42 43 with body 43 44 f1: a function 45 returning 46 signed int 47 with body 48 49 f2: a function 50 returning 51 signed int 52 with body 53 54 f3: a function 44 CompoundStmt 45 Expression Statement: 46 Applying untyped: 47 Applying untyped: 48 Name: *? 49 ...to: 50 Name: g 51 ...to: 52 53 Expression Statement: 54 Applying untyped: 55 Name: g 56 ...to: 57 58 Expression Statement: 59 Applying untyped: 60 Name: ?=? 61 ...to: 62 Address of: 63 Name: g 64 Name: h 65 66 67 f1: function 68 accepting unspecified arguments 69 returning 70 signed int 71 with body 72 CompoundStmt 73 74 f2: function 75 accepting unspecified arguments 76 returning 77 signed int 78 with body 79 CompoundStmt 80 81 f3: function 82 accepting unspecified arguments 55 83 returning 56 84 pointer to function 57 returning 58 signed int 59 60 with body 61 62 f4: a function 85 accepting unspecified arguments 86 returning 87 signed int 88 89 with body 90 CompoundStmt 91 92 f4: function 93 accepting unspecified arguments 63 94 returning 64 95 pointer to signed int 65 96 with body 66 67 f5: a function 97 CompoundStmt 98 99 f5: function 100 accepting unspecified arguments 68 101 returning 69 102 pointer to function 70 returning 71 signed int 72 73 with body 74 75 f6: a function 103 accepting unspecified arguments 104 returning 105 signed int 106 107 with body 108 CompoundStmt 109 110 f6: function 111 accepting unspecified arguments 76 112 returning 77 113 pointer to signed int 78 114 with body 79 80 f7: a function 115 CompoundStmt 116 117 f7: function 118 accepting unspecified arguments 81 119 returning 82 120 pointer to signed int 83 121 with body 84 85 f8: a function 122 CompoundStmt 123 124 f8: function 125 accepting unspecified arguments 86 126 returning 87 127 pointer to pointer to signed int 88 128 with body 89 90 f9: a function 129 CompoundStmt 130 131 f9: function 132 accepting unspecified arguments 91 133 returning 92 134 pointer to const pointer to signed int 93 135 with body 94 95 f10: a function 136 CompoundStmt 137 138 f10: function 139 accepting unspecified arguments 96 140 returning 97 141 pointer to open array of signed int 98 142 with body 99 100 f11: a function 101 returning 102 pointer to open array of open array of signed int 103 with body 104 105 f12: a function 106 returning 107 pointer to open array of open array of signed int 108 with body 109 110 fII1: a function 111 with parameters 112 i: a signed int 113 returning 114 signed int 115 with body 116 117 fII2: a function 118 with parameters 119 i: a signed int 143 CompoundStmt 144 145 f11: function 146 accepting unspecified arguments 147 returning 148 pointer to open array of array of signed int with dimension of constant expression 3 signed int 149 with body 150 CompoundStmt 151 152 f12: function 153 accepting unspecified arguments 154 returning 155 pointer to open array of array of signed int with dimension of constant expression 3 signed int 156 with body 157 CompoundStmt 158 159 fII1: function 160 with parameters 161 i: signed int 162 returning 163 signed int 164 with body 165 CompoundStmt 166 167 fII2: function 168 with parameters 169 i: signed int 120 170 returning 121 171 const signed int 122 172 with body 123 124 fII3: a extern function 125 with parameters 126 i: a signed int 127 returning 128 signed int 129 with body 130 131 fII4: a extern function 132 with parameters 133 i: a signed int 173 CompoundStmt 174 175 fII3: auto function 176 with parameters 177 i: signed int 178 returning 179 signed int 180 with body 181 CompoundStmt 182 183 fII4: auto function 184 with parameters 185 i: signed int 134 186 returning 135 187 const signed int 136 188 with body 137 138 fII5: a function 189 CompoundStmt 190 191 fII5: function 192 accepting unspecified arguments 139 193 returning 140 194 pointer to signed int 141 195 with body 142 143 fII6: a function 196 CompoundStmt 197 198 fII6: function 199 accepting unspecified arguments 144 200 returning 145 201 const pointer to signed int 146 202 with body 147 148 fII7: a function 203 CompoundStmt 204 205 fII7: function 206 accepting unspecified arguments 149 207 returning 150 208 pointer to const long signed int 151 209 with body 152 153 fII8: a static function 210 CompoundStmt 211 212 fII8: static function 213 accepting unspecified arguments 154 214 returning 155 215 pointer to const long signed int 156 216 with body 157 158 fII9: a static function 217 CompoundStmt 218 219 fII9: static function 220 accepting unspecified arguments 159 221 returning 160 222 pointer to const long signed int 161 223 with body 162 163 fO1: a function 224 CompoundStmt 225 226 fO1: function 227 accepting unspecified arguments 164 228 returning 165 229 signed int … … 167 231 i 168 232 with parameter declarations 169 i: a signed int 170 with body 171 172 fO2: a function 233 i: signed int 234 with body 235 CompoundStmt 236 237 fO2: function 238 accepting unspecified arguments 173 239 returning 174 240 signed int … … 176 242 i 177 243 with parameter declarations 178 i: a signed int 179 with body 180 181 fO3: a function 244 i: signed int 245 with body 246 CompoundStmt 247 248 fO3: function 249 accepting unspecified arguments 182 250 returning 183 251 const signed int … … 185 253 i 186 254 with parameter declarations 187 i: a signed int 188 with body 189 190 fO4: a extern function 255 i: signed int 256 with body 257 CompoundStmt 258 259 fO4: auto function 260 accepting unspecified arguments 191 261 returning 192 262 signed int … … 194 264 i 195 265 with parameter declarations 196 i: a signed int 197 with body 198 199 fO5: a extern function 266 i: signed int 267 with body 268 CompoundStmt 269 270 fO5: auto function 271 accepting unspecified arguments 200 272 returning 201 273 const signed int … … 203 275 i 204 276 with parameter declarations 205 i: a signed int 206 with body 207 208 f: a function 209 returning 210 nothing 211 212 f: a function 213 returning 214 signed int 215 216 f: a function 217 with parameters 218 signed int 219 returning 220 nothing 221 222 f: a function 223 with parameters 224 signed int 225 returning 226 signed int 227 228 f: a function 229 returning 230 nothing 231 with body 232 233 f: a function 234 returning 235 signed int 236 with body 237 238 f: a function 239 with parameters 240 signed int 241 returning 242 nothing 243 with body 244 245 f: a function 246 with parameters 247 signed int 248 returning 249 signed int 250 with body 251 252 f: a function 253 returning 254 x: a signed int 255 256 f: a function 257 with parameters 258 x: a signed int 259 returning 260 nothing 261 262 f: a function 263 with parameters 264 x: a signed int 265 returning 266 x: a signed int 267 268 f: a function 269 returning 270 x: a signed int 271 with body 272 273 f: a function 274 with parameters 275 x: a signed int 276 returning 277 nothing 278 with body 279 280 f: a function 281 with parameters 282 x: a signed int 283 returning 284 x: a signed int 285 with body 286 287 f: a function 288 returning 289 signed int 290 x: a signed int 291 292 f: a function 293 with parameters 294 signed int 295 x: a signed int 296 returning 297 nothing 298 299 f: a function 300 with parameters 301 signed int 302 x: a signed int 303 returning 304 signed int 305 x: a signed int 306 307 f: a function 308 returning 309 signed int 310 x: a signed int 311 with body 312 313 f: a function 314 with parameters 315 signed int 316 x: a signed int 317 returning 318 nothing 319 with body 320 321 f: a function 322 with parameters 323 signed int 324 x: a signed int 325 returning 326 signed int 327 x: a signed int 328 with body 329 330 f: a function 331 returning 332 signed int 333 x: a signed int 334 signed int 335 336 f: a function 337 with parameters 338 signed int 339 x: a signed int 340 signed int 341 returning 342 nothing 343 344 f: a function 345 with parameters 346 signed int 347 x: a signed int 348 signed int 349 returning 350 signed int 351 x: a signed int 352 signed int 353 354 f: a function 355 returning 356 signed int 357 x: a signed int 358 signed int 359 with body 360 361 f: a function 362 with parameters 363 signed int 364 x: a signed int 365 signed int 366 returning 367 nothing 368 with body 369 370 f: a function 371 with parameters 372 signed int 373 x: a signed int 374 signed int 375 returning 376 signed int 377 x: a signed int 378 signed int 379 with body 380 381 f: a function 382 returning 383 signed int 384 x: a signed int 385 y: a pointer to signed int 386 387 f: a function 388 with parameters 389 signed int 390 x: a signed int 391 y: a pointer to signed int 392 returning 393 nothing 394 395 f: a function 396 with parameters 397 signed int 398 x: a signed int 399 y: a pointer to signed int 400 returning 401 signed int 402 x: a signed int 403 y: a pointer to signed int 404 405 f: a function 406 returning 407 signed int 408 x: a signed int 409 y: a pointer to signed int 410 with body 411 412 f: a function 413 with parameters 414 signed int 415 x: a signed int 416 y: a pointer to signed int 417 returning 418 nothing 419 with body 420 421 f: a function 422 with parameters 423 signed int 424 x: a signed int 425 y: a pointer to signed int 426 returning 427 signed int 428 x: a signed int 429 y: a pointer to signed int 430 with body 431 432 f11: a function 433 with parameters 434 signed int 435 returning 436 signed int 437 438 f12: a function 439 with parameters 440 signed int 441 returning 442 signed int 443 444 f: a function 277 i: signed int 278 with body 279 CompoundStmt 280 281 f: function 282 returning 283 nothing 284 285 f: function 286 returning 287 signed int 288 289 f: function 290 with parameters 291 signed int 292 returning 293 nothing 294 295 f: function 296 with parameters 297 signed int 298 returning 299 signed int 300 301 f: function 302 returning 303 nothing 304 with body 305 CompoundStmt 306 307 f: function 308 returning 309 signed int 310 with body 311 CompoundStmt 312 313 f: function 314 with parameters 315 signed int 316 returning 317 nothing 318 with body 319 CompoundStmt 320 321 f: function 322 with parameters 323 signed int 324 returning 325 signed int 326 with body 327 CompoundStmt 328 329 f: function 330 returning 331 x: signed int 332 333 f: function 334 with parameters 335 x: signed int 336 returning 337 nothing 338 339 f: function 340 with parameters 341 x: signed int 342 returning 343 x: signed int 344 345 f: function 346 returning 347 x: signed int 348 with body 349 CompoundStmt 350 351 f: function 352 with parameters 353 x: signed int 354 returning 355 nothing 356 with body 357 CompoundStmt 358 359 f: function 360 with parameters 361 x: signed int 362 returning 363 x: signed int 364 with body 365 CompoundStmt 366 367 f: function 368 returning 369 signed int 370 x: signed int 371 372 f: function 373 with parameters 374 signed int 375 x: signed int 376 returning 377 nothing 378 379 f: function 380 with parameters 381 signed int 382 x: signed int 383 returning 384 signed int 385 x: signed int 386 387 f: function 388 returning 389 signed int 390 x: signed int 391 with body 392 CompoundStmt 393 394 f: function 395 with parameters 396 signed int 397 x: signed int 398 returning 399 nothing 400 with body 401 CompoundStmt 402 403 f: function 404 with parameters 405 signed int 406 x: signed int 407 returning 408 signed int 409 x: signed int 410 with body 411 CompoundStmt 412 413 f: function 414 returning 415 signed int 416 x: signed int 417 signed int 418 419 f: function 420 with parameters 421 signed int 422 x: signed int 423 signed int 424 returning 425 nothing 426 427 f: function 428 with parameters 429 signed int 430 x: signed int 431 signed int 432 returning 433 signed int 434 x: signed int 435 signed int 436 437 f: function 438 returning 439 signed int 440 x: signed int 441 signed int 442 with body 443 CompoundStmt 444 445 f: function 446 with parameters 447 signed int 448 x: signed int 449 signed int 450 returning 451 nothing 452 with body 453 CompoundStmt 454 455 f: function 456 with parameters 457 signed int 458 x: signed int 459 signed int 460 returning 461 signed int 462 x: signed int 463 signed int 464 with body 465 CompoundStmt 466 467 f: function 468 returning 469 signed int 470 x: signed int 471 y: pointer to signed int 472 473 f: function 474 with parameters 475 signed int 476 x: signed int 477 y: pointer to signed int 478 returning 479 nothing 480 481 f: function 482 with parameters 483 signed int 484 x: signed int 485 y: pointer to signed int 486 returning 487 signed int 488 x: signed int 489 y: pointer to signed int 490 491 f: function 492 returning 493 signed int 494 x: signed int 495 y: pointer to signed int 496 with body 497 CompoundStmt 498 499 f: function 500 with parameters 501 signed int 502 x: signed int 503 y: pointer to signed int 504 returning 505 nothing 506 with body 507 CompoundStmt 508 509 f: function 510 with parameters 511 signed int 512 x: signed int 513 y: pointer to signed int 514 returning 515 signed int 516 x: signed int 517 y: pointer to signed int 518 with body 519 CompoundStmt 520 521 f11: function 522 with parameters 523 signed int 524 returning 525 signed int 526 527 f12: function 528 with parameters 529 signed int 530 returning 531 signed int 532 533 f: function 445 534 with parameters 446 535 function 447 536 with parameters 448 537 signed int 449 p: asigned int538 p: signed int 450 539 returning 451 540 signed int … … 460 549 signed int 461 550 with body 462 Declaration of p: a pointer to open array of open array of pointer to open array of open array of signed int 463 Declaration of p: a pointer to open array of open array of pointer to open array of open array of signed int 464 Declaration of p: a pointer to open array of pointer to function 465 with parameters 466 signed int 467 returning 468 signed int 469 470 471 f1: a static function 551 CompoundStmt 552 Declaration of p: pointer to open array of array of pointer to open array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 10 signed int 553 Declaration of p: pointer to open array of array of pointer to open array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 10 signed int 554 Declaration of p: pointer to open array of pointer to function 555 with parameters 556 signed int 557 returning 558 signed int 559 560 561 f1: static function 562 accepting unspecified arguments 472 563 returning 473 564 pointer to const signed int 474 565 with body 475 476 f2: a static function 566 CompoundStmt 567 568 f2: static function 477 569 returning 478 570 const signed int 479 571 with body 480 481 f3: a inline static function 572 CompoundStmt 573 574 f3: inline static function 482 575 returning 483 576 const pointer to signed int 484 577 with body 485 486 f4: a inline static function 578 CompoundStmt 579 580 f4: inline static function 487 581 returning 488 582 const tuple of types … … 491 585 492 586 with body 493 494 f5: a static function 587 CompoundStmt 588 589 f5: static function 495 590 returning 496 591 const tuple of types … … 499 594 500 595 with body 501 502 f: a function 503 with parameters 504 function 505 returning 506 signed int 507 508 function 596 CompoundStmt 597 598 f: function 599 with parameters 600 function 601 accepting unspecified arguments 602 returning 603 signed int 604 605 function 606 accepting unspecified arguments 509 607 returning 510 608 pointer to signed int 511 609 512 610 function 611 accepting unspecified arguments 513 612 returning 514 613 pointer to pointer to signed int 515 614 516 615 function 616 accepting unspecified arguments 517 617 returning 518 618 pointer to const pointer to signed int 519 619 520 620 function 621 accepting unspecified arguments 521 622 returning 522 623 const pointer to const pointer to signed int 523 624 524 625 open array of signed int 626 array of signed int with dimension of constant expression 10 signed int 627 open array of pointer to signed int 628 array of pointer to signed int with dimension of constant expression 10 signed int 629 open array of pointer to pointer to signed int 630 array of pointer to pointer to signed int with dimension of constant expression 10 signed int 631 open array of pointer to const pointer to signed int 632 array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 633 open array of const pointer to const pointer to signed int 634 array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 635 returning 636 signed int 637 638 f: function 639 with parameters 640 function 641 accepting unspecified arguments 642 returning 643 signed int 644 645 function 646 accepting unspecified arguments 647 returning 648 pointer to signed int 649 650 function 651 accepting unspecified arguments 652 returning 653 pointer to pointer to signed int 654 655 function 656 accepting unspecified arguments 657 returning 658 pointer to const pointer to signed int 659 660 function 661 accepting unspecified arguments 662 returning 663 const pointer to const pointer to signed int 664 525 665 open array of signed int 666 array of signed int with dimension of constant expression 10 signed int 526 667 open array of pointer to signed int 527 open array of pointer tosigned int668 array of pointer to signed int with dimension of constant expression 10 signed int 528 669 open array of pointer to pointer to signed int 529 open array of pointer to pointer tosigned int670 array of pointer to pointer to signed int with dimension of constant expression 10 signed int 530 671 open array of pointer to const pointer to signed int 531 open array of pointer to const pointer tosigned int672 array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 532 673 open array of const pointer to const pointer to signed int 533 open array of const pointer to const pointer to signed int 534 returning 535 signed int 536 537 f: a function 538 with parameters 539 function 540 returning 541 signed int 542 543 function 544 returning 545 pointer to signed int 546 547 function 548 returning 549 pointer to pointer to signed int 550 551 function 552 returning 553 pointer to const pointer to signed int 554 555 function 556 returning 557 const pointer to const pointer to signed int 558 559 open array of signed int 560 open array of signed int 561 open array of pointer to signed int 562 open array of pointer to signed int 563 open array of pointer to pointer to signed int 564 open array of pointer to pointer to signed int 565 open array of pointer to const pointer to signed int 566 open array of pointer to const pointer to signed int 567 open array of const pointer to const pointer to signed int 568 open array of const pointer to const pointer to signed int 569 returning 570 signed int 571 with body 572 573 T: a typedef for signed int 574 f: a function 674 array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 675 returning 676 signed int 677 with body 678 CompoundStmt 679 680 T: typedef for signed int 681 f: function 575 682 with parameters 576 683 function 577 684 with parameters 578 instance of type T 579 returning 580 instance of type T 581 582 T: a instance of type T 583 returning 584 signed int 585 with body 586 685 instance of type T (not function type) 686 returning 687 instance of type T (not function type) 688 689 T: instance of type T (not function type) 690 returning 691 signed int 692 with body 693 CompoundStmt 694 Expression Statement: 695 Applying untyped: 696 Name: T 697 ...to: 698 Name: T 699 700 -
src/Tests/SynTree/Expected/IdentFuncDeclarator.tst
rcd623a4 r5f2f2d7 1 main: a function 1 main: C function 2 accepting unspecified arguments 2 3 returning 3 4 signed int 4 5 with body 5 Declaration of f1: a signed int 6 Declaration of f2: a signed int 7 Declaration of f3: a pointer to signed int 8 Declaration of f4: a pointer to pointer to signed int 9 Declaration of f5: a pointer to const pointer to signed int 10 Declaration of f6: a const pointer to const pointer to signed int 11 Declaration of f7: a pointer to signed int 12 Declaration of f8: a pointer to pointer to signed int 13 Declaration of f9: a pointer to const pointer to signed int 14 Declaration of f10: a const pointer to const pointer to signed int 15 Declaration of f11: a pointer to signed int 16 Declaration of f12: a pointer to pointer to signed int 17 Declaration of f13: a pointer to const pointer to signed int 18 Declaration of f14: a const pointer to const pointer to signed int 19 Declaration of f15: a open array of signed int 20 Declaration of f16: a open array of signed int 21 Declaration of f17: a open array of signed int 22 Declaration of f18: a open array of signed int 23 Declaration of f19: a open array of pointer to signed int 24 Declaration of f20: a open array of pointer to signed int 25 Declaration of f21: a open array of pointer to pointer to signed int 26 Declaration of f22: a open array of pointer to pointer to signed int 27 Declaration of f23: a open array of pointer to const pointer to signed int 28 Declaration of f24: a open array of pointer to const pointer to signed int 29 Declaration of f25: a open array of const pointer to const pointer to signed int 30 Declaration of f26: a open array of const pointer to const pointer to signed int 31 Declaration of f27: a open array of pointer to signed int 32 Declaration of f28: a open array of pointer to signed int 33 Declaration of f29: a open array of pointer to pointer to signed int 34 Declaration of f30: a open array of pointer to pointer to signed int 35 Declaration of f31: a open array of pointer to const pointer to signed int 36 Declaration of f32: a open array of pointer to const pointer to signed int 37 Declaration of f33: a open array of const pointer to const pointer to signed int 38 Declaration of f34: a open array of const pointer to const pointer to signed int 39 Declaration of f35: a open array of pointer to signed int 40 Declaration of f36: a open array of pointer to signed int 41 Declaration of f37: a open array of pointer to pointer to signed int 42 Declaration of f38: a open array of pointer to pointer to signed int 43 Declaration of f39: a open array of pointer to const pointer to signed int 44 Declaration of f40: a open array of pointer to const pointer to signed int 45 Declaration of f41: a open array of const pointer to const pointer to signed int 46 Declaration of f42: a open array of const pointer to const pointer to signed int 47 Declaration of f43: a open array of open array of signed int 48 Declaration of f44: a open array of open array of signed int 49 Declaration of f45: a open array of open array of signed int 50 Declaration of f46: a open array of open array of signed int 51 Declaration of f47: a open array of open array of signed int 52 Declaration of f48: a open array of open array of signed int 53 Declaration of f49: a open array of open array of pointer to signed int 54 Declaration of f50: a open array of open array of pointer to signed int 55 Declaration of f51: a open array of open array of pointer to pointer to signed int 56 Declaration of f52: a open array of open array of pointer to pointer to signed int 57 Declaration of f53: a open array of open array of pointer to const pointer to signed int 58 Declaration of f54: a open array of open array of pointer to const pointer to signed int 59 Declaration of f55: a open array of open array of const pointer to const pointer to signed int 60 Declaration of f56: a open array of open array of const pointer to const pointer to signed int 61 Declaration of f57: a open array of open array of pointer to signed int 62 Declaration of f58: a open array of open array of pointer to signed int 63 Declaration of f59: a open array of open array of pointer to pointer to signed int 64 Declaration of f60: a open array of open array of pointer to pointer to signed int 65 Declaration of f61: a open array of open array of pointer to const pointer to signed int 66 Declaration of f62: a open array of open array of pointer to const pointer to signed int 67 Declaration of f63: a open array of open array of const pointer to const pointer to signed int 68 Declaration of f64: a open array of open array of const pointer to const pointer to signed int 69 Declaration of f65: a function 70 with parameters 71 signed int 72 returning 73 signed int 6 CompoundStmt 7 Declaration of f1: signed int 8 Declaration of f2: signed int 9 Declaration of f3: pointer to signed int 10 Declaration of f4: pointer to pointer to signed int 11 Declaration of f5: pointer to const pointer to signed int 12 Declaration of f6: const pointer to const pointer to signed int 13 Declaration of f7: pointer to signed int 14 Declaration of f8: pointer to pointer to signed int 15 Declaration of f9: pointer to const pointer to signed int 16 Declaration of f10: const pointer to const pointer to signed int 17 Declaration of f11: pointer to signed int 18 Declaration of f12: pointer to pointer to signed int 19 Declaration of f13: pointer to const pointer to signed int 20 Declaration of f14: const pointer to const pointer to signed int 21 Declaration of f15: open array of signed int 22 Declaration of f16: array of signed int with dimension of constant expression 10 signed int 23 Declaration of f17: open array of signed int 24 Declaration of f18: array of signed int with dimension of constant expression 10 signed int 25 Declaration of f19: open array of pointer to signed int 26 Declaration of f20: array of pointer to signed int with dimension of constant expression 10 signed int 27 Declaration of f21: open array of pointer to pointer to signed int 28 Declaration of f22: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 29 Declaration of f23: open array of pointer to const pointer to signed int 30 Declaration of f24: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 31 Declaration of f25: open array of const pointer to const pointer to signed int 32 Declaration of f26: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 33 Declaration of f27: open array of pointer to signed int 34 Declaration of f28: array of pointer to signed int with dimension of constant expression 10 signed int 35 Declaration of f29: open array of pointer to pointer to signed int 36 Declaration of f30: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 37 Declaration of f31: open array of pointer to const pointer to signed int 38 Declaration of f32: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 39 Declaration of f33: open array of const pointer to const pointer to signed int 40 Declaration of f34: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 41 Declaration of f35: open array of pointer to signed int 42 Declaration of f36: array of pointer to signed int with dimension of constant expression 10 signed int 43 Declaration of f37: open array of pointer to pointer to signed int 44 Declaration of f38: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 45 Declaration of f39: open array of pointer to const pointer to signed int 46 Declaration of f40: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 47 Declaration of f41: open array of const pointer to const pointer to signed int 48 Declaration of f42: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 49 Declaration of f43: open array of array of signed int with dimension of constant expression 3 signed int 50 Declaration of f44: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 51 Declaration of f45: open array of array of signed int with dimension of constant expression 3 signed int 52 Declaration of f46: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 53 Declaration of f47: open array of array of signed int with dimension of constant expression 3 signed int 54 Declaration of f48: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 55 Declaration of f49: open array of array of pointer to signed int with dimension of constant expression 3 signed int 56 Declaration of f50: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 57 Declaration of f51: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 58 Declaration of f52: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 59 Declaration of f53: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 60 Declaration of f54: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 61 Declaration of f55: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 62 Declaration of f56: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 63 Declaration of f57: open array of array of pointer to signed int with dimension of constant expression 3 signed int 64 Declaration of f58: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 65 Declaration of f59: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 66 Declaration of f60: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 67 Declaration of f61: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 68 Declaration of f62: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 69 Declaration of f63: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 70 Declaration of f64: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 71 Declaration of f65: function 72 with parameters 73 signed int 74 returning 75 signed int 74 76 75 Declaration of f66: afunction76 with parameters77 signed int78 returning79 signed int77 Declaration of f66: function 78 with parameters 79 signed int 80 returning 81 signed int 80 82 81 Declaration of f67: afunction82 with parameters83 signed int84 returning85 pointer to signed int83 Declaration of f67: function 84 with parameters 85 signed int 86 returning 87 pointer to signed int 86 88 87 Declaration of f68: afunction88 with parameters89 signed int90 returning91 pointer to pointer to signed int89 Declaration of f68: function 90 with parameters 91 signed int 92 returning 93 pointer to pointer to signed int 92 94 93 Declaration of f69: afunction94 with parameters95 signed int96 returning97 pointer to const pointer to signed int95 Declaration of f69: function 96 with parameters 97 signed int 98 returning 99 pointer to const pointer to signed int 98 100 99 Declaration of f70: afunction100 with parameters101 signed int102 returning103 const pointer to const pointer to signed int101 Declaration of f70: function 102 with parameters 103 signed int 104 returning 105 const pointer to const pointer to signed int 104 106 105 Declaration of f71: afunction106 with parameters107 signed int108 returning109 pointer to signed int107 Declaration of f71: function 108 with parameters 109 signed int 110 returning 111 pointer to signed int 110 112 111 Declaration of f72: afunction112 with parameters113 signed int114 returning115 pointer to pointer to signed int113 Declaration of f72: function 114 with parameters 115 signed int 116 returning 117 pointer to pointer to signed int 116 118 117 Declaration of f73: afunction118 with parameters119 signed int120 returning121 pointer to const pointer to signed int119 Declaration of f73: function 120 with parameters 121 signed int 122 returning 123 pointer to const pointer to signed int 122 124 123 Declaration of f74: afunction124 with parameters125 signed int126 returning127 const pointer to const pointer to signed int125 Declaration of f74: function 126 with parameters 127 signed int 128 returning 129 const pointer to const pointer to signed int 128 130 129 Declaration of f75: apointer to function130 with parameters131 signed int132 returning133 signed int131 Declaration of f75: pointer to function 132 with parameters 133 signed int 134 returning 135 signed int 134 136 135 Declaration of f76: apointer to pointer to function136 with parameters137 signed int138 returning139 signed int137 Declaration of f76: pointer to pointer to function 138 with parameters 139 signed int 140 returning 141 signed int 140 142 141 Declaration of f77: apointer to const pointer to function142 with parameters143 signed int144 returning145 signed int143 Declaration of f77: pointer to const pointer to function 144 with parameters 145 signed int 146 returning 147 signed int 146 148 147 Declaration of f78: aconst pointer to const pointer to function148 with parameters149 signed int150 returning151 signed int149 Declaration of f78: const pointer to const pointer to function 150 with parameters 151 signed int 152 returning 153 signed int 152 154 153 Declaration of f79: a pointer to function 154 with parameters 155 signed int 156 returning 157 pointer to function 158 returning 159 signed int 155 Declaration of f79: pointer to function 156 with parameters 157 signed int 158 returning 159 pointer to function 160 accepting unspecified arguments 161 returning 162 signed int 160 163 161 164 162 Declaration of f80: a const pointer to function 163 with parameters 164 signed int 165 returning 166 pointer to function 167 returning 168 signed int 165 Declaration of f80: const pointer to function 166 with parameters 167 signed int 168 returning 169 pointer to function 170 accepting unspecified arguments 171 returning 172 signed int 169 173 170 174 171 Declaration of f81: a const pointer to function 172 with parameters 173 signed int 174 returning 175 const pointer to function 176 returning 177 signed int 175 Declaration of f81: const pointer to function 176 with parameters 177 signed int 178 returning 179 const pointer to function 180 accepting unspecified arguments 181 returning 182 signed int 178 183 179 184 -
src/Tests/SynTree/Expected/Initialization.tst
rcd623a4 r5f2f2d7 1 x21: a pointer to signed int 2 x22: a signed int 3 x21: a pointer to signed int 4 x22: a signed int 5 y1: a open array of signed int 6 y2: a open array of signed int 1 x21: pointer to signed int with initializer 2 Simple Initializer: Name: 0 3 4 x22: signed int with initializer 5 Simple Initializer: Name: 0 6 7 x21: pointer to signed int with initializer 8 Simple Initializer: Name: 0 9 10 x22: signed int with initializer 11 Simple Initializer: Name: 0 12 13 y1: array of signed int with dimension of constant expression 20 signed int 14 y2: array of signed int with dimension of constant expression 20 signed int 7 15 struct __anonymous0 8 16 with members 9 w: atuple of types17 w: tuple of types 10 18 signed int 11 19 12 20 13 a: a instance of struct __anonymous0 21 a: instance of struct __anonymous0 with initializer 22 Compound initializer: 23 Simple Initializer: Tuple: 24 constant expression 2 signed int 25 26 designated by: Name: w 27 14 28 struct __anonymous1 15 29 with members 16 a: a open array ofsigned int17 b: asigned int30 a: array of signed int with dimension of constant expression 3 signed int 31 b: signed int 18 32 19 w: a open array of instance of struct __anonymous1 33 w: open array of instance of struct __anonymous1 with initializer 34 Compound initializer: 35 Compound initializer: designated by: [ Name: 0 36 Name: a 37 ] 38 Simple Initializer: Name: 1 39 40 Simple Initializer: Name: 1 41 42 designated by: Name: 0 43 Name: b 44 45 Simple Initializer: constant expression 2 signed int 46 designated by: Name: 1 47 Name: a 48 Name: 0 49 20 50 struct __anonymous3 21 51 with members 22 f1: asigned int23 f2: asigned int24 f3: asigned int52 f1: signed int 53 f2: signed int 54 f3: signed int 25 55 struct __anonymous2 26 56 with members 27 g1: asigned int28 g2: asigned int29 g3: asigned int57 g1: signed int 58 g2: signed int 59 g3: signed int 30 60 31 f4: a open array of instance of struct __anonymous261 f4: array of instance of struct __anonymous2 with dimension of constant expression 4 signed int 32 62 33 v7: a instance of struct __anonymous3 63 v7: instance of struct __anonymous3 with initializer 64 Compound initializer: 65 Simple Initializer: constant expression 4 signed int 66 designated by: Name: f1 67 68 Simple Initializer: constant expression 3 signed int 69 designated by: Name: f2 70 71 Compound initializer: designated by: [ Name: f4 72 constant expression 2 signed int ] 73 Simple Initializer: constant expression 3 signed int 74 designated by: Name: g1 75 76 Simple Initializer: Name: 0 77 78 designated by: Name: g3 79 80 Simple Initializer: constant expression 7 signed int 81 designated by: Name: f4 82 constant expression 3 signed int Name: g3 83 -
src/Tests/SynTree/Expected/Scope.tst
rcd623a4 r5f2f2d7 1 in default case, (shouldn't be here) 2 in default case, (shouldn't be here) 3 in default case, (shouldn't be here) 4 x: a signed int 5 y: a typedef for double 6 t: a typedef for float 7 z: a instance of type y 1 x: signed int 2 y: typedef for double 3 t: typedef for float 4 z: instance of type y (not function type) 8 5 struct __anonymous0 9 6 with members 10 a: asigned int11 b: adouble7 a: signed int 8 b: double 12 9 13 u: atype for instance of struct __anonymous014 f: afunction10 u: type for instance of struct __anonymous0 11 f: function 15 12 with parameters 16 y: asigned int13 y: signed int 17 14 returning 18 15 signed int 19 16 20 q: a instance of type y21 w: afunction17 q: instance of type y (not function type) 18 w: function 22 19 with parameters 23 y: a instance of type y24 v: a instance of type u20 y: instance of type y (not function type) 21 v: instance of type u (not function type) 25 22 returning 26 instance of type y 23 instance of type y (not function type) 27 24 with body 28 Declaration of x: a type 29 with assertions 30 t: a function 31 with parameters 32 instance of type u 33 returning 34 instance of type x 25 CompoundStmt 26 Declaration of x: type 27 with assertions 28 t: function 29 with parameters 30 instance of type u (not function type) 31 returning 32 instance of type x (not function type) 35 33 36 34 37 Declaration of u: a instance of type u38 Declaration of z: a instance of type x35 Declaration of u: instance of type u (not function type) with initializer 36 Simple Initializer: Name: y 39 37 40 p: a instance of type y 38 Declaration of z: instance of type x (not function type) with initializer 39 Simple Initializer: Applying untyped: 40 Name: t 41 ...to: 42 Name: u 43 44 45 p: instance of type y (not function type) 41 46 context has_u 42 47 with parameters 43 z: atype48 z: type 44 49 45 50 with members 46 u: afunction51 u: function 47 52 with parameters 48 instance of type z 53 instance of type z (not function type) 49 54 returning 50 instance of type z 55 instance of type z (not function type) 51 56 52 57 53 q: a function 54 with parameters 55 the_t: a instance of type t 56 with forall 57 t: a type 58 q: forall 59 t: type 58 60 with assertions 61 ?=?: function 62 with parameters 63 pointer to instance of type t (not function type) 64 instance of type t (not function type) 65 returning 66 instance of type t (not function type) 67 59 68 instance of context has_u 60 69 with parameters 61 instance of type t 70 instance of type t (not function type) 62 71 63 72 73 function 74 with parameters 75 the_t: instance of type t (not function type) 64 76 returning 65 instance of type y 77 instance of type y (not function type) 66 78 with body 67 Declaration of y: a instance of type t 79 CompoundStmt 80 Declaration of y: instance of type t (not function type) with initializer 81 Simple Initializer: Applying untyped: 82 Name: u 83 ...to: 84 Name: the_t 68 85 69 f: a function 86 87 f: function 70 88 with parameters 71 p: a instance of type y89 p: instance of type y (not function type) 72 90 returning 73 instance of type t 91 instance of type t (not function type) 74 92 with body 75 Declaration of y: a signed int 76 Declaration of x: a typedef for char 77 Declaration of y: a instance of type x 78 Declaration of z: a typedef for instance of type x 79 Declaration of x: a instance of type z 80 Declaration of y: a typedef for instance of type z 81 Declaration of z: a instance of type y 93 CompoundStmt 94 Declaration of y: signed int 95 Declaration of x: typedef for char 96 CompoundStmt 97 Declaration of y: instance of type x (not function type) 98 Declaration of z: typedef for instance of type x (not function type) 99 CompoundStmt 100 Declaration of x: instance of type z (not function type) 101 Declaration of y: typedef for instance of type z (not function type) 102 Declaration of z: instance of type y (not function type) with initializer 103 Simple Initializer: Name: x 82 104 83 Declaration of x: a instance of type z84 105 85 Declaration of q: a instance of type x 106 Declaration of x: instance of type z (not function type) with initializer 107 Simple Initializer: Name: y 86 108 87 g: a function 109 110 Declaration of q: instance of type x (not function type) with initializer 111 Simple Initializer: Name: y 112 113 114 g: function 88 115 with parameters 89 116 void 90 117 returning 91 instance of type t 118 instance of type t (not function type) 92 119 with body 93 Declaration of x: a typedef for char 94 Declaration of z: a instance of type x 120 CompoundStmt 121 Declaration of x: typedef for char 122 Try Statement 123 with block: 124 CompoundStmt 125 Expression Statement: 126 Applying untyped: 127 Name: some_func 128 ...to: 95 129 96 q: a function 130 and handlers: 131 Catch Statement 132 ... catching 133 x: instance of type x (not function type) 134 135 Declaration of z: instance of type x (not function type) 136 137 q: function 138 accepting unspecified arguments 97 139 returning 98 instance of type y 140 instance of type y (not function type) 99 141 with parameter names 100 142 i 101 143 with parameter declarations 102 i: asigned int144 i: signed int 103 145 with body 104 105 Switch on condition: 106 Name: i 146 CompoundStmt 147 Switch on condition: Name: i 107 148 108 Case: 109 .... and 1 conditions 110 Name: 0 149 Case Name: 0 111 150 112 Case: 113 .... and 0 conditions 151 Return Statement, returning: Name: q 152 153 Default 154 Return Statement, returning: Name: i 114 155 115 156 157 -
src/Tests/SynTree/Expected/StructMember.tst
rcd623a4 r5f2f2d7 1 T: atypedef for signed int1 T: typedef for signed int 2 2 struct S 3 3 with members 4 m1: a signed int 5 m2: a signed int 6 signed int 7 signed int 8 signed int 9 m3: a signed int 10 m4: a signed int 11 m5: a signed int 12 m6: a signed int 13 m7: a pointer to signed int 14 m8: a pointer to signed int 15 m9: a pointer to signed int 16 m10: a pointer to function 4 m1: signed int with bitfield width constant expression 3 signed int 5 m2: signed int with bitfield width constant expression 4 signed int 6 signed int with bitfield width constant expression 2 signed int 7 signed int with bitfield width constant expression 3 signed int 8 signed int with bitfield width constant expression 4 signed int 9 m3: signed int 10 m4: signed int 11 m5: signed int 12 m6: signed int 13 m7: pointer to signed int 14 m8: pointer to signed int 15 m9: pointer to signed int 16 m10: pointer to function 17 accepting unspecified arguments 17 18 returning 18 19 signed int 19 20 20 m11: apointer to function21 m11: pointer to function 21 22 with parameters 22 23 signed int … … 24 25 pointer to signed int 25 26 26 T: a instance of type T27 T: a instance of type T28 m12: apointer to signed int29 m13: apointer to signed int30 m14: apointer to function27 T: instance of type T (not function type) 28 T: instance of type T (not function type) 29 m12: pointer to signed int 30 m13: pointer to signed int 31 m14: pointer to function 31 32 with parameters 32 33 signed int … … 48 49 pointer to signed int 49 50 pointer to function 51 accepting unspecified arguments 50 52 returning 51 53 signed int … … 57 59 signed int 58 60 59 instance of type T 61 instance of type T (not function type) 60 62 61 s: ainstance of struct S63 s: instance of struct S 62 64 union U 63 65 with members 64 m1: a open array ofsigned int65 m2: a open array ofsigned int66 m3: apointer to signed int67 m4: apointer to signed int66 m1: array of signed int with dimension of constant expression 5 signed int 67 m2: array of signed int with dimension of constant expression 5 signed int 68 m3: pointer to signed int 69 m4: pointer to signed int 68 70 69 u: ainstance of union U71 u: instance of union U -
src/Tests/SynTree/Expected/Tuple.tst
rcd623a4 r5f2f2d7 1 f: afunction2 with parameters 3 signed int 4 signed int 5 returning 6 signed int 7 8 g: afunction9 with parameters 10 signed int 11 signed int 12 signed int 13 returning 14 signed int 15 16 h: astatic function17 with parameters 18 a: asigned int19 b: asigned int20 c: apointer to signed int21 d: aopen array of char1 f: function 2 with parameters 3 signed int 4 signed int 5 returning 6 signed int 7 8 g: function 9 with parameters 10 signed int 11 signed int 12 signed int 13 returning 14 signed int 15 16 h: static function 17 with parameters 18 a: signed int 19 b: signed int 20 c: pointer to signed int 21 d: open array of char 22 22 returning 23 23 signed int … … 28 28 struct inner 29 29 with members 30 f2: asigned int31 f3: asigned int30 f2: signed int 31 f3: signed int 32 32 33 33 struct outer 34 34 with members 35 f1: asigned int36 i: ainstance of struct inner37 f4: adouble38 39 s: ainstance of struct outer40 sp: apointer to instance of struct outer41 t1: aconst volatile tuple of types35 f1: signed int 36 i: instance of struct inner 37 f4: double 38 39 s: instance of struct outer 40 sp: pointer to instance of struct outer 41 t1: const volatile tuple of types 42 42 signed int 43 43 signed int 44 44 45 t2: astatic const tuple of types45 t2: static const tuple of types 46 46 signed int 47 47 const signed int 48 48 49 t3: astatic const tuple of types49 t3: static const tuple of types 50 50 signed int 51 51 const signed int 52 52 53 printf: afunction54 with parameters 55 fmt: apointer to char53 printf: function 54 with parameters 55 fmt: pointer to char 56 56 and a variable number of other arguments 57 57 returning 58 rc: asigned int59 60 printf: afunction61 with parameters 62 fmt: apointer to char58 rc: signed int 59 60 printf: function 61 with parameters 62 fmt: pointer to char 63 63 and a variable number of other arguments 64 64 returning 65 65 signed int 66 66 67 f1: afunction68 with parameters 69 w: asigned int70 returning 71 x: ashort signed int72 y: aunsigned int67 f1: function 68 with parameters 69 w: signed int 70 returning 71 x: short signed int 72 y: unsigned int 73 73 with body 74 75 g1: a function 76 returning 77 r: a tuple of types 74 CompoundStmt 75 Expression Statement: 76 Applying untyped: 77 Name: ?=? 78 ...to: 79 Address of: 80 Tuple: 81 Name: y 82 83 Name: x 84 85 Applying untyped: 86 Name: ?=? 87 ...to: 88 Address of: 89 Tuple: 90 Name: x 91 92 Name: y 93 94 Tuple: 95 Name: w 96 97 constant expression 23 signed int 98 99 100 g1: function 101 returning 102 r: tuple of types 78 103 signed int 79 104 char … … 82 107 83 108 with body 84 Declaration of x: a short signed int 85 Declaration of p: a short signed int 86 Declaration of y: a unsigned int 87 Declaration of z: a tuple of types 88 signed int 89 signed int 90 91 92 main: a function 93 with parameters 94 argc: a signed int 95 argv: a pointer to pointer to char 96 returning 97 rc: a signed int 109 CompoundStmt 110 Declaration of x: short signed int 111 Declaration of p: short signed int 112 Declaration of y: unsigned int 113 Declaration of z: tuple of types 114 signed int 115 signed int 116 117 Expression Statement: 118 Applying untyped: 119 Name: ?=? 120 ...to: 121 Address of: 122 Tuple: 123 Name: x 124 125 Name: y 126 127 Name: z 128 129 Tuple: 130 Name: p 131 132 Applying untyped: 133 Name: f 134 ...to: 135 constant expression 17 signed int 136 constant expression 3 signed int 137 138 Expression Statement: 139 Applying untyped: 140 Name: ?=? 141 ...to: 142 Address of: 143 Name: r 144 Tuple: 145 Name: x 146 147 Name: y 148 149 Name: z 150 151 152 153 main: C function 154 with parameters 155 argc: signed int 156 argv: pointer to pointer to char 157 returning 158 rc: signed int 98 159 with body 99 Declaration of a: a signed int 100 Declaration of b: a signed int 101 Declaration of c: a signed int 102 Declaration of d: a signed int 103 Declaration of t: a instance of struct outer 104 160 CompoundStmt 161 Declaration of a: signed int 162 Declaration of b: signed int 163 Declaration of c: signed int 164 Declaration of d: signed int 165 Declaration of t: instance of struct outer with initializer 166 Compound initializer: 167 Simple Initializer: Tuple: 168 Name: 1 169 170 constant expression 7.0 double 171 172 designated by: Name: f1 173 Name: f4 174 175 Expression Statement: 176 Applying untyped: 177 Name: f 178 ...to: 179 Tuple: 180 constant expression 3 signed int 181 constant expression 5 signed int 182 183 Expression Statement: 184 Applying untyped: 185 Name: g 186 ...to: 187 Tuple: 188 constant expression 3 signed int 189 constant expression 5 signed int 190 constant expression 3 signed int 191 Expression Statement: 192 Applying untyped: 193 Name: f 194 ...to: 195 Name: t1 196 197 Expression Statement: 198 Applying untyped: 199 Name: g 200 ...to: 201 Name: t1 202 constant expression 3 signed int 203 Expression Statement: 204 Tuple: 205 constant expression 3 signed int 206 constant expression 5 signed int 207 208 Expression Statement: 209 Applying untyped: 210 Name: ?=? 211 ...to: 212 Address of: 213 Tuple: 214 Name: a 215 216 Name: b 217 218 constant expression 3 signed int 219 Expression Statement: 220 Applying untyped: 221 Name: ?=? 222 ...to: 223 Address of: 224 Tuple: 225 Name: a 226 227 Name: b 228 229 Tuple: 230 constant expression 4.6 double 231 232 Expression Statement: 233 Applying untyped: 234 Name: ?=? 235 ...to: 236 Address of: 237 Tuple: 238 Name: a 239 240 Name: b 241 242 Applying untyped: 243 Name: ?=? 244 ...to: 245 Address of: 246 Tuple: 247 Name: c 248 249 Name: d 250 251 Tuple: 252 constant expression 3 signed int 253 constant expression 5 signed int 254 255 Expression Statement: 256 Applying untyped: 257 Name: ?=? 258 ...to: 259 Address of: 260 Tuple: 261 Name: a 262 263 Name: b 264 265 Tuple: 266 Name: c 267 268 269 Tuple: 270 constant expression 2 signed int 271 Tuple: 272 Name: a 273 274 Name: b 275 276 277 278 Expression Statement: 279 Applying untyped: 280 Name: ?=? 281 ...to: 282 Address of: 283 Tuple: 284 Name: a 285 286 Name: b 287 288 Conditional expression on: 289 Cast of: 290 Applying untyped: 291 Name: ?!=? 292 ...to: 293 Applying untyped: 294 Name: ?>? 295 ...to: 296 constant expression 3 signed int constant expression 4 signed int Name: 0 297 298 to: 299 signed int 300 First alternative: 301 Tuple: 302 Name: b 303 304 constant expression 6 signed int 305 Second alternative: 306 Tuple: 307 constant expression 7 signed int 308 constant expression 8 signed int 309 310 311 Expression Statement: 312 Applying untyped: 313 Name: ?=? 314 ...to: 315 Address of: 316 Name: t1 317 Tuple: 318 Name: a 319 320 Name: b 321 322 323 Expression Statement: 324 Applying untyped: 325 Name: ?=? 326 ...to: 327 Address of: 328 Name: t1 329 Applying untyped: 330 Name: ?=? 331 ...to: 332 Address of: 333 Name: t2 334 Tuple: 335 Name: a 336 337 Name: b 338 339 340 Expression Statement: 341 Applying untyped: 342 Name: ?=? 343 ...to: 344 Address of: 345 Tuple: 346 Name: a 347 348 Name: b 349 350 Applying untyped: 351 Name: ?=? 352 ...to: 353 Address of: 354 Tuple: 355 Name: c 356 357 Name: d 358 359 Applying untyped: 360 Name: ?+=? 361 ...to: 362 Address of: 363 Name: d 364 Applying untyped: 365 Name: ?+=? 366 ...to: 367 Address of: 368 Name: c 369 Name: 1 370 371 Expression Statement: 372 Applying untyped: 373 Name: ?=? 374 ...to: 375 Address of: 376 Tuple: 377 Name: a 378 379 Name: b 380 381 Applying untyped: 382 Name: ?=? 383 ...to: 384 Address of: 385 Tuple: 386 Name: c 387 388 Name: d 389 390 Name: t1 391 392 Expression Statement: 393 Applying untyped: 394 Name: ?=? 395 ...to: 396 Address of: 397 Tuple: 398 Name: a 399 400 Name: b 401 402 Applying untyped: 403 Name: ?=? 404 ...to: 405 Address of: 406 Name: t1 407 Tuple: 408 Name: c 409 410 Name: d 411 412 413 Expression Statement: 414 Applying untyped: 415 Name: ?=? 416 ...to: 417 Address of: 418 Tuple: 419 Name: a 420 421 Name: b 422 423 Applying untyped: 424 Name: ?=? 425 ...to: 426 Address of: 427 Name: t1 428 Applying untyped: 429 Name: ?=? 430 ...to: 431 Address of: 432 Name: t2 433 Tuple: 434 Name: c 435 436 Name: d 437 438 439 Expression Statement: 440 Applying untyped: 441 Name: ?=? 442 ...to: 443 Address of: 444 Name: t1 445 Applying untyped: 446 Name: ?=? 447 ...to: 448 Address of: 449 Tuple: 450 constant expression 3 signed int 451 constant expression 4 signed int 452 Applying untyped: 453 Name: ?=? 454 ...to: 455 Address of: 456 Tuple: 457 constant expression 3 signed int 458 constant expression 4 signed int 459 Applying untyped: 460 Name: ?=? 461 ...to: 462 Address of: 463 Name: t1 464 Tuple: 465 constant expression 3 signed int 466 constant expression 4 signed int 467 468 Expression Statement: 469 Applying untyped: 470 Name: ?=? 471 ...to: 472 Address of: 473 Name: s 474 Tuple: 475 constant expression 11 signed int 476 constant expression 12 signed int 477 constant expression 13 signed int 478 constant expression 3.14159 double 479 480 Expression Statement: 481 Applying untyped: 482 Name: ?=? 483 ...to: 484 Address of: 485 Name: s 486 Applying untyped: 487 Name: h 488 ...to: 489 constant expression 3 signed int constant expression 3 signed int Name: 0 490 constant expression "abc" array of char with dimension of constant expression 6 unsigned int 491 Expression Statement: 492 Applying untyped: 493 Name: ?=? 494 ...to: 495 Address of: 496 Name: sp 497 Name: sp 498 499 Expression Statement: 500 Applying untyped: 501 Name: printf 502 ...to: 503 constant expression "expecting 3, 17, 23, 4; got %d, %d, %d, %d\n" array of char with dimension of constant expression 47 unsigned int Name: s 504 505 Expression Statement: 506 Applying untyped: 507 Name: ?=? 508 ...to: 509 Address of: 510 Name: rc 511 Name: 0 512 513 -
src/Tests/SynTree/Expected/TypeGenerator.tst
rcd623a4 r5f2f2d7 1 1 context addable 2 2 with parameters 3 T: atype3 T: type 4 4 5 5 with members 6 ?+?: afunction6 ?+?: function 7 7 with parameters 8 instance of type T 9 instance of type T 8 instance of type T (not function type) 9 instance of type T (not function type) 10 10 returning 11 instance of type T 11 instance of type T (not function type) 12 12 13 13 14 14 struct __anonymous0 15 15 with members 16 data: a instance of type T17 next: a pointer to instance of type List16 data: instance of type T (not function type) 17 next: pointer to instance of type List (not function type) 18 18 with parameters 19 instance of type T 19 instance of type T (not function type) 20 20 21 21 22 List: atype for pointer to instance of struct __anonymous022 List: type for pointer to instance of struct __anonymous0 23 23 with parameters 24 T: atype24 T: type 25 25 with assertions 26 26 instance of context addable 27 27 with parameters 28 instance of type T 28 instance of type T (not function type) 29 29 30 30 … … 33 33 instance of context addable 34 34 with parameters 35 instance of type T 35 instance of type T (not function type) 36 36 37 37 38 ListOfIntegers: a typedef for instance of type List38 ListOfIntegers: typedef for instance of type List (not function type) 39 39 with parameters 40 40 signed int 41 41 42 li: a instance of type ListOfIntegers43 f: afunction42 li: instance of type ListOfIntegers (not function type) 43 f: function 44 44 with parameters 45 g: apointer to function45 g: pointer to function 46 46 with parameters 47 47 signed int 48 48 returning 49 instance of type List 49 instance of type List (not function type) 50 50 with parameters 51 51 signed int … … 55 55 signed int 56 56 57 h: afunction57 h: function 58 58 with parameters 59 p: a pointer to instance of type List59 p: pointer to instance of type List (not function type) 60 60 with parameters 61 61 signed int … … 66 66 struct node 67 67 with parameters 68 T: atype68 T: type 69 69 with assertions 70 70 instance of context addable 71 71 with parameters 72 instance of type T 72 instance of type T (not function type) 73 73 74 74 75 75 76 76 with members 77 data: a instance of type T78 next: apointer to instance of struct node77 data: instance of type T (not function type) 78 next: pointer to instance of struct node 79 79 with parameters 80 instance of type T 80 instance of type T (not function type) 81 81 82 82 83 List: atype for pointer to instance of struct node83 List: type for pointer to instance of struct node 84 84 with parameters 85 instance of type T 85 instance of type T (not function type) 86 86 87 87 with parameters 88 T: atype88 T: type 89 89 90 my_list: a instance of type List90 my_list: instance of type List (not function type) 91 91 with parameters 92 92 signed int 93 93 94 Complex: atype94 Complex: type 95 95 with assertions 96 96 instance of context addable 97 97 with parameters 98 instance of type Complex 98 instance of type Complex (not function type) 99 99 100 100 101 main: a function 101 main: C function 102 accepting unspecified arguments 102 103 returning 103 104 signed int 104 105 with body 105 106 Expression Statement:107 Cast of:108 Name: my_list106 CompoundStmt 107 Expression Statement: 108 Cast of: 109 Name: my_list 109 110 110 to:111 instance of struct node112 with parameters113 signed int111 to: 112 instance of struct node 113 with parameters 114 signed int 114 115 115 116 -
src/Tests/SynTree/Expected/Typedef.tst
rcd623a4 r5f2f2d7 1 T: atypedef for signed int2 f: afunction1 T: typedef for signed int 2 f: function 3 3 with parameters 4 4 void … … 6 6 void 7 7 with body 8 Declaration of T: a function 9 with parameters 10 instance of type T 11 returning 12 signed int 8 CompoundStmt 9 Declaration of T: function 10 with parameters 11 instance of type T (not function type) 12 returning 13 signed int 13 14 15 Expression Statement: 16 Applying untyped: 17 Name: T 18 ...to: 19 constant expression 3 signed int 14 20 15 21 struct __anonymous0 16 22 with members 17 T: a instance of type T23 T: instance of type T (not function type) 18 24 19 fred: a instance of struct __anonymous0 20 a: a typedef for pointer to function 25 fred: instance of struct __anonymous0 with initializer 26 Compound initializer: 27 Simple Initializer: constant expression 3 signed int 28 a: typedef for pointer to function 21 29 with parameters 22 30 signed int … … 25 33 signed int 26 34 27 b: a instance of type a28 g: afunction35 b: instance of type a (not function type) 36 g: function 29 37 with parameters 30 38 void … … 32 40 signed int 33 41 with body 34 Declaration of a: a double 42 CompoundStmt 43 Declaration of a: double 35 44 36 c: a instance of type a 37 main: a function 45 c: instance of type a (not function type) 46 main: C function 47 accepting unspecified arguments 38 48 returning 39 49 signed int 40 50 with body 51 CompoundStmt 41 52 42 arrayOf10Pointers: a typedef for open array of pointer tosigned int43 x: a instance of type arrayOf10Pointers44 constantPointer: atypedef for const pointer to signed int45 funcPtr: atypedef for pointer to function53 arrayOf10Pointers: typedef for array of pointer to signed int with dimension of constant expression 10 signed int 54 x: instance of type arrayOf10Pointers (not function type) 55 constantPointer: typedef for const pointer to signed int 56 funcPtr: typedef for pointer to function 46 57 with parameters 47 58 open array of signed int … … 49 60 signed int 50 61 51 funcProto: atypedef for function62 funcProto: typedef for function 52 63 with parameters 53 64 open array of signed int … … 55 66 signed int 56 67 57 tupleType: atypedef for tuple of types68 tupleType: typedef for tuple of types 58 69 signed int 59 70 signed int 60 71 61 tupleTypePtr: atypedef for pointer to tuple of types72 tupleTypePtr: typedef for pointer to tuple of types 62 73 signed int 63 74 signed int 64 75 65 a: atypedef for pointer to signed int66 b: atypedef for pointer to signed int67 f: atypedef for function76 a: typedef for pointer to signed int 77 b: typedef for pointer to signed int 78 f: typedef for function 68 79 with parameters 69 80 pointer to signed int … … 71 82 signed int 72 83 73 g: atypedef for function84 g: typedef for function 74 85 with parameters 75 86 pointer to signed int … … 77 88 signed int 78 89 79 t: atypedef for tuple of types80 pointer to static open array ofsigned int90 t: typedef for tuple of types 91 pointer to static array of signed int with dimension of constant expression 10 signed int 81 92 82 f: atypedef for function93 f: typedef for function 83 94 returning 84 x: a pointer to static open array ofsigned int95 x: pointer to static array of signed int with dimension of constant expression 10 signed int 85 96 -
src/Tests/SynTree/Expected/TypedefDeclarator.tst
rcd623a4 r5f2f2d7 1 f0: a typedef for signed int 2 f1: a typedef for signed int 3 f2: a typedef for signed int 4 f3: a typedef for signed int 5 f4: a typedef for signed int 6 f5: a typedef for signed int 7 f6: a typedef for signed int 8 f7: a typedef for signed int 9 f8: a typedef for signed int 10 f9: a typedef for signed int 11 f10: a typedef for signed int 12 f11: a typedef for signed int 13 f12: a typedef for signed int 14 f13: a typedef for signed int 15 f14: a typedef for signed int 16 f15: a typedef for signed int 17 f16: a typedef for signed int 18 f17: a typedef for signed int 19 f18: a typedef for signed int 20 f19: a typedef for signed int 21 f20: a typedef for signed int 22 f21: a typedef for signed int 23 f22: a typedef for signed int 24 f23: a typedef for signed int 25 f24: a typedef for signed int 26 f25: a typedef for signed int 27 f26: a typedef for signed int 28 f27: a typedef for signed int 29 f28: a typedef for signed int 30 f29: a typedef for signed int 31 f30: a typedef for signed int 32 f31: a typedef for signed int 33 f32: a typedef for signed int 34 f33: a typedef for signed int 35 f34: a typedef for signed int 36 f35: a typedef for signed int 37 f36: a typedef for signed int 38 f37: a typedef for signed int 39 f38: a typedef for signed int 40 f39: a typedef for signed int 41 f40: a typedef for signed int 42 f41: a typedef for signed int 43 f42: a typedef for signed int 44 f43: a typedef for signed int 45 f44: a typedef for signed int 46 f45: a typedef for signed int 47 f46: a typedef for signed int 48 f47: a typedef for signed int 49 f48: a typedef for signed int 50 f49: a typedef for signed int 51 f50: a typedef for signed int 52 f51: a typedef for signed int 53 f52: a typedef for signed int 54 f53: a typedef for signed int 55 f54: a typedef for signed int 56 f55: a typedef for signed int 57 f56: a typedef for signed int 58 f57: a typedef for signed int 59 f58: a typedef for signed int 60 f59: a typedef for signed int 61 f60: a typedef for signed int 62 f61: a typedef for signed int 63 f62: a typedef for signed int 64 f63: a typedef for signed int 65 f64: a typedef for signed int 66 f65: a typedef for signed int 67 f66: a typedef for signed int 68 f67: a typedef for signed int 69 f68: a typedef for signed int 70 f69: a typedef for signed int 71 f70: a typedef for signed int 72 f71: a typedef for signed int 73 f72: a typedef for signed int 74 f73: a typedef for signed int 75 f74: a typedef for signed int 76 f75: a typedef for signed int 77 f76: a typedef for signed int 78 f77: a typedef for signed int 79 f78: a typedef for signed int 80 f79: a typedef for signed int 81 f80: a typedef for signed int 82 f81: a typedef for signed int 83 f82: a typedef for signed int 84 f83: a typedef for signed int 85 f84: a typedef for signed int 86 f85: a typedef for signed int 87 f86: a typedef for signed int 88 f87: a typedef for signed int 89 f88: a typedef for signed int 90 f89: a typedef for signed int 91 main: a function 1 f0: typedef for signed int 2 f1: typedef for signed int 3 f2: typedef for signed int 4 f3: typedef for signed int 5 f4: typedef for signed int 6 f5: typedef for signed int 7 f6: typedef for signed int 8 f7: typedef for signed int 9 f8: typedef for signed int 10 f9: typedef for signed int 11 f10: typedef for signed int 12 f11: typedef for signed int 13 f12: typedef for signed int 14 f13: typedef for signed int 15 f14: typedef for signed int 16 f15: typedef for signed int 17 f16: typedef for signed int 18 f17: typedef for signed int 19 f18: typedef for signed int 20 f19: typedef for signed int 21 f20: typedef for signed int 22 f21: typedef for signed int 23 f22: typedef for signed int 24 f23: typedef for signed int 25 f24: typedef for signed int 26 f25: typedef for signed int 27 f26: typedef for signed int 28 f27: typedef for signed int 29 f28: typedef for signed int 30 f29: typedef for signed int 31 f30: typedef for signed int 32 f31: typedef for signed int 33 f32: typedef for signed int 34 f33: typedef for signed int 35 f34: typedef for signed int 36 f35: typedef for signed int 37 f36: typedef for signed int 38 f37: typedef for signed int 39 f38: typedef for signed int 40 f39: typedef for signed int 41 f40: typedef for signed int 42 f41: typedef for signed int 43 f42: typedef for signed int 44 f43: typedef for signed int 45 f44: typedef for signed int 46 f45: typedef for signed int 47 f46: typedef for signed int 48 f47: typedef for signed int 49 f48: typedef for signed int 50 f49: typedef for signed int 51 f50: typedef for signed int 52 f51: typedef for signed int 53 f52: typedef for signed int 54 f53: typedef for signed int 55 f54: typedef for signed int 56 f55: typedef for signed int 57 f56: typedef for signed int 58 f57: typedef for signed int 59 f58: typedef for signed int 60 f59: typedef for signed int 61 f60: typedef for signed int 62 f61: typedef for signed int 63 f62: typedef for signed int 64 f63: typedef for signed int 65 f64: typedef for signed int 66 f65: typedef for signed int 67 f66: typedef for signed int 68 f67: typedef for signed int 69 f68: typedef for signed int 70 f69: typedef for signed int 71 f70: typedef for signed int 72 f71: typedef for signed int 73 f72: typedef for signed int 74 f73: typedef for signed int 75 f74: typedef for signed int 76 f75: typedef for signed int 77 f76: typedef for signed int 78 f77: typedef for signed int 79 f78: typedef for signed int 80 f79: typedef for signed int 81 f80: typedef for signed int 82 f81: typedef for signed int 83 f82: typedef for signed int 84 f83: typedef for signed int 85 f84: typedef for signed int 86 f85: typedef for signed int 87 f86: typedef for signed int 88 f87: typedef for signed int 89 f88: typedef for signed int 90 f89: typedef for signed int 91 main: C function 92 accepting unspecified arguments 92 93 returning 93 94 signed int 94 95 with body 95 Declaration of f1: a signed int 96 Declaration of f2: a signed int 97 Declaration of f3: a pointer to signed int 98 Declaration of f4: a pointer to pointer to signed int 99 Declaration of f5: a pointer to const pointer to signed int 100 Declaration of f6: a const pointer to const pointer to signed int 101 Declaration of f7: a pointer to signed int 102 Declaration of f8: a pointer to pointer to signed int 103 Declaration of f9: a pointer to const pointer to signed int 104 Declaration of f10: a const pointer to const pointer to signed int 105 Declaration of f11: a pointer to signed int 106 Declaration of f12: a pointer to pointer to signed int 107 Declaration of f13: a pointer to const pointer to signed int 108 Declaration of f14: a const pointer to const pointer to signed int 109 Declaration of f15: a open array of signed int 110 Declaration of f16: a open array of signed int 111 Declaration of f17: a open array of signed int 112 Declaration of f18: a open array of signed int 113 Declaration of f19: a open array of pointer to signed int 114 Declaration of f20: a open array of pointer to signed int 115 Declaration of f21: a open array of pointer to pointer to signed int 116 Declaration of f22: a open array of pointer to pointer to signed int 117 Declaration of f23: a open array of pointer to const pointer to signed int 118 Declaration of f24: a open array of pointer to const pointer to signed int 119 Declaration of f25: a open array of const pointer to const pointer to signed int 120 Declaration of f26: a open array of const pointer to const pointer to signed int 121 Declaration of f27: a open array of pointer to signed int 122 Declaration of f28: a open array of pointer to signed int 123 Declaration of f29: a open array of pointer to pointer to signed int 124 Declaration of f30: a open array of pointer to pointer to signed int 125 Declaration of f31: a open array of pointer to const pointer to signed int 126 Declaration of f32: a open array of pointer to const pointer to signed int 127 Declaration of f33: a open array of const pointer to const pointer to signed int 128 Declaration of f34: a open array of const pointer to const pointer to signed int 129 Declaration of f35: a open array of pointer to signed int 130 Declaration of f36: a open array of pointer to signed int 131 Declaration of f37: a open array of pointer to pointer to signed int 132 Declaration of f38: a open array of pointer to pointer to signed int 133 Declaration of f39: a open array of pointer to const pointer to signed int 134 Declaration of f40: a open array of pointer to const pointer to signed int 135 Declaration of f41: a open array of const pointer to const pointer to signed int 136 Declaration of f42: a open array of const pointer to const pointer to signed int 137 Declaration of f43: a open array of open array of signed int 138 Declaration of f44: a open array of open array of signed int 139 Declaration of f45: a open array of open array of signed int 140 Declaration of f46: a open array of open array of signed int 141 Declaration of f47: a open array of open array of signed int 142 Declaration of f48: a open array of open array of signed int 143 Declaration of f49: a open array of open array of pointer to signed int 144 Declaration of f50: a open array of open array of pointer to signed int 145 Declaration of f51: a open array of open array of pointer to pointer to signed int 146 Declaration of f52: a open array of open array of pointer to pointer to signed int 147 Declaration of f53: a open array of open array of pointer to const pointer to signed int 148 Declaration of f54: a open array of open array of pointer to const pointer to signed int 149 Declaration of f55: a open array of open array of const pointer to const pointer to signed int 150 Declaration of f56: a open array of open array of const pointer to const pointer to signed int 151 Declaration of f57: a open array of open array of pointer to signed int 152 Declaration of f58: a open array of open array of pointer to signed int 153 Declaration of f59: a open array of open array of pointer to pointer to signed int 154 Declaration of f60: a open array of open array of pointer to pointer to signed int 155 Declaration of f61: a open array of open array of pointer to const pointer to signed int 156 Declaration of f62: a open array of open array of pointer to const pointer to signed int 157 Declaration of f63: a open array of open array of const pointer to const pointer to signed int 158 Declaration of f64: a open array of open array of const pointer to const pointer to signed int 159 Declaration of f65: a function 160 with parameters 161 signed int 162 returning 163 signed int 164 165 Declaration of f66: a function 166 with parameters 167 signed int 168 returning 169 signed int 170 171 Declaration of f67: a function 172 with parameters 173 signed int 174 returning 175 pointer to signed int 176 177 Declaration of f68: a function 178 with parameters 179 signed int 180 returning 181 pointer to pointer to signed int 182 183 Declaration of f69: a function 184 with parameters 185 signed int 186 returning 187 pointer to const pointer to signed int 188 189 Declaration of f70: a function 190 with parameters 191 signed int 192 returning 193 const pointer to const pointer to signed int 194 195 Declaration of f71: a function 196 with parameters 197 signed int 198 returning 199 pointer to signed int 200 201 Declaration of f72: a function 202 with parameters 203 signed int 204 returning 205 pointer to pointer to signed int 206 207 Declaration of f73: a function 208 with parameters 209 signed int 210 returning 211 pointer to const pointer to signed int 212 213 Declaration of f74: a function 214 with parameters 215 signed int 216 returning 217 const pointer to const pointer to signed int 218 219 Declaration of f75: a pointer to function 220 with parameters 221 signed int 222 returning 223 signed int 224 225 Declaration of f76: a pointer to pointer to function 226 with parameters 227 signed int 228 returning 229 signed int 230 231 Declaration of f77: a pointer to const pointer to function 232 with parameters 233 signed int 234 returning 235 signed int 236 237 Declaration of f78: a const pointer to const pointer to function 238 with parameters 239 signed int 240 returning 241 signed int 242 243 Declaration of f79: a pointer to function 244 with parameters 245 signed int 246 returning 247 pointer to function 248 returning 249 signed int 250 251 252 Declaration of f80: a const pointer to function 253 with parameters 254 signed int 255 returning 256 pointer to function 257 returning 258 signed int 259 260 261 Declaration of f81: a const pointer to function 262 with parameters 263 signed int 264 returning 265 const pointer to function 266 returning 267 signed int 268 269 270 96 CompoundStmt 97 Declaration of f1: signed int 98 Declaration of f2: signed int 99 Declaration of f3: pointer to signed int 100 Declaration of f4: pointer to pointer to signed int 101 Declaration of f5: pointer to const pointer to signed int 102 Declaration of f6: const pointer to const pointer to signed int 103 Declaration of f7: pointer to signed int 104 Declaration of f8: pointer to pointer to signed int 105 Declaration of f9: pointer to const pointer to signed int 106 Declaration of f10: const pointer to const pointer to signed int 107 Declaration of f11: pointer to signed int 108 Declaration of f12: pointer to pointer to signed int 109 Declaration of f13: pointer to const pointer to signed int 110 Declaration of f14: const pointer to const pointer to signed int 111 Declaration of f15: open array of signed int 112 Declaration of f16: array of signed int with dimension of constant expression 10 signed int 113 Declaration of f17: open array of signed int 114 Declaration of f18: array of signed int with dimension of constant expression 10 signed int 115 Declaration of f19: open array of pointer to signed int 116 Declaration of f20: array of pointer to signed int with dimension of constant expression 10 signed int 117 Declaration of f21: open array of pointer to pointer to signed int 118 Declaration of f22: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 119 Declaration of f23: open array of pointer to const pointer to signed int 120 Declaration of f24: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 121 Declaration of f25: open array of const pointer to const pointer to signed int 122 Declaration of f26: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 123 Declaration of f27: open array of pointer to signed int 124 Declaration of f28: array of pointer to signed int with dimension of constant expression 10 signed int 125 Declaration of f29: open array of pointer to pointer to signed int 126 Declaration of f30: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 127 Declaration of f31: open array of pointer to const pointer to signed int 128 Declaration of f32: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 129 Declaration of f33: open array of const pointer to const pointer to signed int 130 Declaration of f34: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 131 Declaration of f35: open array of pointer to signed int 132 Declaration of f36: array of pointer to signed int with dimension of constant expression 10 signed int 133 Declaration of f37: open array of pointer to pointer to signed int 134 Declaration of f38: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 135 Declaration of f39: open array of pointer to const pointer to signed int 136 Declaration of f40: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 137 Declaration of f41: open array of const pointer to const pointer to signed int 138 Declaration of f42: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 139 Declaration of f43: open array of array of signed int with dimension of constant expression 3 signed int 140 Declaration of f44: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 141 Declaration of f45: open array of array of signed int with dimension of constant expression 3 signed int 142 Declaration of f46: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 143 Declaration of f47: open array of array of signed int with dimension of constant expression 3 signed int 144 Declaration of f48: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 145 Declaration of f49: open array of array of pointer to signed int with dimension of constant expression 3 signed int 146 Declaration of f50: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 147 Declaration of f51: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 148 Declaration of f52: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 149 Declaration of f53: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 150 Declaration of f54: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 151 Declaration of f55: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 152 Declaration of f56: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 153 Declaration of f57: open array of array of pointer to signed int with dimension of constant expression 3 signed int 154 Declaration of f58: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 155 Declaration of f59: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 156 Declaration of f60: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 157 Declaration of f61: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 158 Declaration of f62: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 159 Declaration of f63: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 160 Declaration of f64: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 161 Declaration of f65: function 162 with parameters 163 signed int 164 returning 165 signed int 166 167 Declaration of f66: function 168 with parameters 169 signed int 170 returning 171 signed int 172 173 Declaration of f67: function 174 with parameters 175 signed int 176 returning 177 pointer to signed int 178 179 Declaration of f68: function 180 with parameters 181 signed int 182 returning 183 pointer to pointer to signed int 184 185 Declaration of f69: function 186 with parameters 187 signed int 188 returning 189 pointer to const pointer to signed int 190 191 Declaration of f70: function 192 with parameters 193 signed int 194 returning 195 const pointer to const pointer to signed int 196 197 Declaration of f71: function 198 with parameters 199 signed int 200 returning 201 pointer to signed int 202 203 Declaration of f72: function 204 with parameters 205 signed int 206 returning 207 pointer to pointer to signed int 208 209 Declaration of f73: function 210 with parameters 211 signed int 212 returning 213 pointer to const pointer to signed int 214 215 Declaration of f74: function 216 with parameters 217 signed int 218 returning 219 const pointer to const pointer to signed int 220 221 Declaration of f75: pointer to function 222 with parameters 223 signed int 224 returning 225 signed int 226 227 Declaration of f76: pointer to pointer to function 228 with parameters 229 signed int 230 returning 231 signed int 232 233 Declaration of f77: pointer to const pointer to function 234 with parameters 235 signed int 236 returning 237 signed int 238 239 Declaration of f78: const pointer to const pointer to function 240 with parameters 241 signed int 242 returning 243 signed int 244 245 Declaration of f79: pointer to function 246 with parameters 247 signed int 248 returning 249 pointer to function 250 accepting unspecified arguments 251 returning 252 signed int 253 254 255 Declaration of f80: const pointer to function 256 with parameters 257 signed int 258 returning 259 pointer to function 260 accepting unspecified arguments 261 returning 262 signed int 263 264 265 Declaration of f81: const pointer to function 266 with parameters 267 signed int 268 returning 269 const pointer to function 270 accepting unspecified arguments 271 returning 272 signed int 273 274 275 -
src/Tests/SynTree/Expected/TypedefParamDeclarator.tst
rcd623a4 r5f2f2d7 1 f0: atypedef for signed int2 f1: atypedef for signed int3 f2: atypedef for signed int4 f3: atypedef for signed int5 f4: atypedef for signed int6 f5: atypedef for signed int7 f6: atypedef for signed int8 f7: atypedef for signed int9 f8: atypedef for signed int10 f9: atypedef for signed int11 f10: atypedef for signed int12 f11: atypedef for signed int13 f12: atypedef for signed int14 f13: atypedef for signed int15 f14: atypedef for signed int16 f15: atypedef for signed int17 f16: atypedef for signed int18 f17: atypedef for signed int19 f18: atypedef for signed int20 f19: atypedef for signed int21 f20: atypedef for signed int22 f21: atypedef for signed int23 f22: atypedef for signed int24 f23: atypedef for signed int25 f24: atypedef for signed int26 f25: atypedef for signed int27 f26: atypedef for signed int28 f27: atypedef for signed int29 f28: atypedef for signed int30 f29: atypedef for signed int31 f30: atypedef for signed int32 f31: atypedef for signed int33 f32: atypedef for signed int34 f33: atypedef for signed int35 f34: atypedef for signed int36 f35: atypedef for signed int37 f36: atypedef for signed int38 f37: atypedef for signed int39 f38: atypedef for signed int40 f39: atypedef for signed int41 f40: atypedef for signed int42 f41: atypedef for signed int43 f42: atypedef for signed int44 f43: atypedef for signed int45 f44: atypedef for signed int46 f45: atypedef for signed int47 f46: atypedef for signed int48 f47: atypedef for signed int49 f48: atypedef for signed int50 f49: atypedef for signed int51 f50: atypedef for signed int52 f51: atypedef for signed int53 f52: atypedef for signed int54 f53: atypedef for signed int55 f54: atypedef for signed int56 f55: atypedef for signed int57 f56: atypedef for signed int58 f57: atypedef for signed int59 f58: atypedef for signed int60 f59: atypedef for signed int61 f60: atypedef for signed int62 f61: atypedef for signed int63 f62: atypedef for signed int64 f63: atypedef for signed int65 f64: atypedef for signed int66 f65: atypedef for signed int67 f66: atypedef for signed int68 f67: atypedef for signed int69 f68: atypedef for signed int70 f69: atypedef for signed int71 f70: atypedef for signed int72 f71: atypedef for signed int73 f72: atypedef for signed int74 f73: atypedef for signed int75 f74: atypedef for signed int76 f75: atypedef for signed int77 f76: atypedef for signed int78 f77: atypedef for signed int79 f78: atypedef for signed int80 f79: atypedef for signed int81 f80: atypedef for signed int82 f81: atypedef for signed int83 f82: atypedef for signed int84 f83: atypedef for signed int85 f84: atypedef for signed int86 f85: atypedef for signed int87 f86: atypedef for signed int88 f87: atypedef for signed int89 f88: atypedef for signed int90 f89: atypedef for signed int91 f90: atypedef for signed int92 f91: atypedef for signed int93 f92: atypedef for signed int94 f93: atypedef for signed int95 f94: atypedef for signed int96 f95: atypedef for signed int97 f96: atypedef for signed int98 f97: atypedef for signed int99 f98: atypedef for signed int100 f99: atypedef for signed int101 f100: atypedef for signed int102 f101: atypedef for signed int103 f102: atypedef for signed int104 f103: atypedef for signed int105 f104: atypedef for signed int106 f105: atypedef for signed int107 f106: atypedef for signed int108 f107: atypedef for signed int109 f108: atypedef for signed int110 f109: atypedef for signed int111 f110: atypedef for signed int112 f111: atypedef for signed int113 f112: atypedef for signed int114 f113: atypedef for signed int115 f114: atypedef for signed int116 f115: atypedef for signed int117 f116: atypedef for signed int118 f117: atypedef for signed int119 f118: atypedef for signed int120 f119: atypedef for signed int121 fred: afunction1 f0: typedef for signed int 2 f1: typedef for signed int 3 f2: typedef for signed int 4 f3: typedef for signed int 5 f4: typedef for signed int 6 f5: typedef for signed int 7 f6: typedef for signed int 8 f7: typedef for signed int 9 f8: typedef for signed int 10 f9: typedef for signed int 11 f10: typedef for signed int 12 f11: typedef for signed int 13 f12: typedef for signed int 14 f13: typedef for signed int 15 f14: typedef for signed int 16 f15: typedef for signed int 17 f16: typedef for signed int 18 f17: typedef for signed int 19 f18: typedef for signed int 20 f19: typedef for signed int 21 f20: typedef for signed int 22 f21: typedef for signed int 23 f22: typedef for signed int 24 f23: typedef for signed int 25 f24: typedef for signed int 26 f25: typedef for signed int 27 f26: typedef for signed int 28 f27: typedef for signed int 29 f28: typedef for signed int 30 f29: typedef for signed int 31 f30: typedef for signed int 32 f31: typedef for signed int 33 f32: typedef for signed int 34 f33: typedef for signed int 35 f34: typedef for signed int 36 f35: typedef for signed int 37 f36: typedef for signed int 38 f37: typedef for signed int 39 f38: typedef for signed int 40 f39: typedef for signed int 41 f40: typedef for signed int 42 f41: typedef for signed int 43 f42: typedef for signed int 44 f43: typedef for signed int 45 f44: typedef for signed int 46 f45: typedef for signed int 47 f46: typedef for signed int 48 f47: typedef for signed int 49 f48: typedef for signed int 50 f49: typedef for signed int 51 f50: typedef for signed int 52 f51: typedef for signed int 53 f52: typedef for signed int 54 f53: typedef for signed int 55 f54: typedef for signed int 56 f55: typedef for signed int 57 f56: typedef for signed int 58 f57: typedef for signed int 59 f58: typedef for signed int 60 f59: typedef for signed int 61 f60: typedef for signed int 62 f61: typedef for signed int 63 f62: typedef for signed int 64 f63: typedef for signed int 65 f64: typedef for signed int 66 f65: typedef for signed int 67 f66: typedef for signed int 68 f67: typedef for signed int 69 f68: typedef for signed int 70 f69: typedef for signed int 71 f70: typedef for signed int 72 f71: typedef for signed int 73 f72: typedef for signed int 74 f73: typedef for signed int 75 f74: typedef for signed int 76 f75: typedef for signed int 77 f76: typedef for signed int 78 f77: typedef for signed int 79 f78: typedef for signed int 80 f79: typedef for signed int 81 f80: typedef for signed int 82 f81: typedef for signed int 83 f82: typedef for signed int 84 f83: typedef for signed int 85 f84: typedef for signed int 86 f85: typedef for signed int 87 f86: typedef for signed int 88 f87: typedef for signed int 89 f88: typedef for signed int 90 f89: typedef for signed int 91 f90: typedef for signed int 92 f91: typedef for signed int 93 f92: typedef for signed int 94 f93: typedef for signed int 95 f94: typedef for signed int 96 f95: typedef for signed int 97 f96: typedef for signed int 98 f97: typedef for signed int 99 f98: typedef for signed int 100 f99: typedef for signed int 101 f100: typedef for signed int 102 f101: typedef for signed int 103 f102: typedef for signed int 104 f103: typedef for signed int 105 f104: typedef for signed int 106 f105: typedef for signed int 107 f106: typedef for signed int 108 f107: typedef for signed int 109 f108: typedef for signed int 110 f109: typedef for signed int 111 f110: typedef for signed int 112 f111: typedef for signed int 113 f112: typedef for signed int 114 f113: typedef for signed int 115 f114: typedef for signed int 116 f115: typedef for signed int 117 f116: typedef for signed int 118 f117: typedef for signed int 119 f118: typedef for signed int 120 f119: typedef for signed int 121 fred: function 122 122 with parameters 123 f1: asigned int124 f3: apointer to signed int125 f4: apointer to pointer to signed int126 f5: apointer to const pointer to signed int127 f6: aconst pointer to const pointer to signed int128 f11: apointer to signed int129 f12: apointer to pointer to signed int130 f13: apointer to const pointer to signed int131 f14: aconst pointer to const pointer to signed int132 f15: aopen array of signed int133 f16: a open array ofsigned int134 f19: aopen array of pointer to signed int135 f20: a open array of pointer tosigned int136 f21: aopen array of pointer to pointer to signed int137 f22: a open array of pointer to pointer tosigned int138 f23: aopen array of pointer to const pointer to signed int139 f24: a open array of pointer to const pointer tosigned int140 f25: aopen array of const pointer to const pointer to signed int141 f26: a open array of const pointer to const pointer tosigned int142 f35: aopen array of pointer to signed int143 f36: a open array of pointer tosigned int144 f37: aopen array of pointer to pointer to signed int145 f38: a open array of pointer to pointer tosigned int146 f39: aopen array of pointer to const pointer to signed int147 f40: a open array of pointer to const pointer tosigned int148 f41: aopen array of const pointer to const pointer to signed int149 f42: a open array of const pointer to const pointer tosigned int150 f43: a open array of open array ofsigned int151 f44: a open array of open array ofsigned int152 f49: a open array of open array of pointer tosigned int153 f50: a open array of open array of pointer tosigned int154 f51: a open array of open array of pointer to pointer tosigned int155 f52: a open array of open array of pointer to pointer tosigned int156 f53: a open array of open array of pointer to const pointer tosigned int157 f54: a open array of open array of pointer to const pointer tosigned int158 f55: a open array of open array of const pointer to const pointer tosigned int159 f56: a open array of open array of const pointer to const pointer tosigned int160 f57: a open array of open array of pointer tosigned int161 f58: a open array of open array of pointer tosigned int162 f59: a open array of open array of pointer to pointer tosigned int163 f60: a open array of open array of pointer to pointer tosigned int164 f61: a open array of open array of pointer to const pointer tosigned int165 f62: a open array of open array of pointer to const pointer tosigned int166 f63: a open array of open array of const pointer to const pointer tosigned int167 f64: a open array of open array of const pointer to const pointer tosigned int168 f65: afunction169 with parameters 170 signed int 171 returning 172 signed int 173 174 f67: afunction175 with parameters 176 signed int 177 returning 178 pointer to signed int 179 180 f68: afunction123 f1: signed int 124 f3: pointer to signed int 125 f4: pointer to pointer to signed int 126 f5: pointer to const pointer to signed int 127 f6: const pointer to const pointer to signed int 128 f11: pointer to signed int 129 f12: pointer to pointer to signed int 130 f13: pointer to const pointer to signed int 131 f14: const pointer to const pointer to signed int 132 f15: open array of signed int 133 f16: array of signed int with dimension of constant expression 10 signed int 134 f19: open array of pointer to signed int 135 f20: array of pointer to signed int with dimension of constant expression 10 signed int 136 f21: open array of pointer to pointer to signed int 137 f22: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 138 f23: open array of pointer to const pointer to signed int 139 f24: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 140 f25: open array of const pointer to const pointer to signed int 141 f26: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 142 f35: open array of pointer to signed int 143 f36: array of pointer to signed int with dimension of constant expression 10 signed int 144 f37: open array of pointer to pointer to signed int 145 f38: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 146 f39: open array of pointer to const pointer to signed int 147 f40: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 148 f41: open array of const pointer to const pointer to signed int 149 f42: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 150 f43: open array of array of signed int with dimension of constant expression 3 signed int 151 f44: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 152 f49: open array of array of pointer to signed int with dimension of constant expression 3 signed int 153 f50: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 154 f51: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 155 f52: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 156 f53: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 157 f54: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 158 f55: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 159 f56: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 160 f57: open array of array of pointer to signed int with dimension of constant expression 3 signed int 161 f58: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 162 f59: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 163 f60: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 164 f61: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 165 f62: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 166 f63: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 167 f64: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 168 f65: function 169 with parameters 170 signed int 171 returning 172 signed int 173 174 f67: function 175 with parameters 176 signed int 177 returning 178 pointer to signed int 179 180 f68: function 181 181 with parameters 182 182 signed int … … 184 184 pointer to pointer to signed int 185 185 186 f69: afunction186 f69: function 187 187 with parameters 188 188 signed int … … 190 190 pointer to const pointer to signed int 191 191 192 f70: afunction192 f70: function 193 193 with parameters 194 194 signed int … … 196 196 const pointer to const pointer to signed int 197 197 198 f75: apointer to function199 with parameters 200 signed int 201 returning 202 signed int 203 204 f76: apointer to pointer to function205 with parameters 206 signed int 207 returning 208 signed int 209 210 f77: apointer to const pointer to function211 with parameters 212 signed int 213 returning 214 signed int 215 216 f78: aconst pointer to const pointer to function217 with parameters 218 signed int 219 returning 220 signed int 221 222 f79: apointer to function198 f75: pointer to function 199 with parameters 200 signed int 201 returning 202 signed int 203 204 f76: pointer to pointer to function 205 with parameters 206 signed int 207 returning 208 signed int 209 210 f77: pointer to const pointer to function 211 with parameters 212 signed int 213 returning 214 signed int 215 216 f78: const pointer to const pointer to function 217 with parameters 218 signed int 219 returning 220 signed int 221 222 f79: pointer to function 223 223 with parameters 224 224 signed int 225 225 returning 226 226 pointer to function 227 accepting unspecified arguments 227 228 returning 228 229 signed int 229 230 230 231 231 f80: aconst pointer to function232 f80: const pointer to function 232 233 with parameters 233 234 signed int 234 235 returning 235 236 pointer to function 237 accepting unspecified arguments 236 238 returning 237 239 signed int 238 240 239 241 240 f81: aconst pointer to function242 f81: const pointer to function 241 243 with parameters 242 244 signed int 243 245 returning 244 246 const pointer to function 247 accepting unspecified arguments 245 248 returning 246 249 signed int 247 250 248 251 249 f82: aconst variable length array of signed int250 f83: a const open array ofsigned int251 f84: a static open array ofsigned int252 f85: a const static open array ofsigned int253 function 254 with parameters 255 const variable length array of instance of type f86 256 returning 257 signed int 258 259 function 260 with parameters 261 const open array of instance of type f87262 returning 263 signed int 264 265 function 266 with parameters 267 static open array of instance of type f88268 returning 269 signed int 270 271 function 272 with parameters 273 const static open array of instance of type f89274 returning 275 signed int 276 277 f90: aconst variable length array of pointer to signed int278 f91: a const open array of pointer tosigned int279 f92: a static open array of pointer to pointer tosigned int280 f93: a const static open array of pointer to const pointer tosigned int281 f94: a const static open array of const pointer to const pointer tosigned int282 function 283 with parameters 284 const variable length array of instance of type f95 285 returning 286 pointer to signed int 287 288 function 289 with parameters 290 const open array of instance of type f96291 returning 292 pointer to signed int 293 294 function 295 with parameters 296 static open array of instance of type f97252 f82: const variable length array of signed int 253 f83: const array of signed int with dimension of constant expression 3 signed int 254 f84: static array of signed int with dimension of constant expression 3 signed int 255 f85: const static array of signed int with dimension of constant expression 3 signed int 256 function 257 with parameters 258 const variable length array of instance of type f86 (not function type) 259 returning 260 signed int 261 262 function 263 with parameters 264 const array of instance of type f87 (not function type) with dimension of constant expression 3 signed int 265 returning 266 signed int 267 268 function 269 with parameters 270 static array of instance of type f88 (not function type) with dimension of constant expression 3 signed int 271 returning 272 signed int 273 274 function 275 with parameters 276 const static array of instance of type f89 (not function type) with dimension of constant expression 3 signed int 277 returning 278 signed int 279 280 f90: const variable length array of pointer to signed int 281 f91: const array of pointer to signed int with dimension of constant expression 3 signed int 282 f92: static array of pointer to pointer to signed int with dimension of constant expression 3 signed int 283 f93: const static array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 284 f94: const static array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 285 function 286 with parameters 287 const variable length array of instance of type f95 (not function type) 288 returning 289 pointer to signed int 290 291 function 292 with parameters 293 const array of instance of type f96 (not function type) with dimension of constant expression 3 signed int 294 returning 295 pointer to signed int 296 297 function 298 with parameters 299 static array of instance of type f97 (not function type) with dimension of constant expression 3 signed int 297 300 returning 298 301 pointer to pointer to signed int … … 300 303 function 301 304 with parameters 302 const static open array of instance of type f98305 const static array of instance of type f98 (not function type) with dimension of constant expression 3 signed int 303 306 returning 304 307 pointer to const pointer to signed int … … 306 309 function 307 310 with parameters 308 const static open array of instance of type f99311 const static array of instance of type f99 (not function type) with dimension of constant expression 3 signed int 309 312 returning 310 313 const pointer to const pointer to signed int 311 314 312 f100: a const variable length array of open array ofsigned int313 f101: a const open array of open array ofsigned int314 f102: a static open array of open array ofsigned int315 f103: a const static open array of open array ofsigned int316 function 317 with parameters 318 const variable length array of open array of instance of type f104319 returning 320 signed int 321 322 function 323 with parameters 324 const open array of open array of instance of type f105325 returning 326 signed int 327 328 function 329 with parameters 330 static open array of open array of instance of type f106331 returning 332 signed int 333 334 function 335 with parameters 336 const static open array of open array of instance of type f107337 returning 338 signed int 339 340 f108: a const variable length array of open array of pointer tosigned int341 f109: a const open array of open array of pointer tosigned int342 f110: a static open array of open array of pointer to pointer tosigned int343 f111: a const static open array of open array of pointer to const pointer tosigned int344 f112: a const static open array of open array of const pointer to const pointer tosigned int345 function 346 with parameters 347 const variable length array of open array of instance of type f113348 returning 349 pointer to signed int 350 351 function 352 with parameters 353 const open array of open array of instance of type f114354 returning 355 pointer to signed int 356 357 function 358 with parameters 359 static open array of open array of instance of type f115315 f100: const variable length array of array of signed int with dimension of constant expression 3 signed int 316 f101: const array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 317 f102: static array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 318 f103: const static array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 319 function 320 with parameters 321 const variable length array of array of instance of type f104 (not function type) with dimension of constant expression 3 signed int 322 returning 323 signed int 324 325 function 326 with parameters 327 const array of array of instance of type f105 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 328 returning 329 signed int 330 331 function 332 with parameters 333 static array of array of instance of type f106 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 334 returning 335 signed int 336 337 function 338 with parameters 339 const static array of array of instance of type f107 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 340 returning 341 signed int 342 343 f108: const variable length array of array of pointer to signed int with dimension of constant expression 3 signed int 344 f109: const array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 345 f110: static array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 346 f111: const static array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 347 f112: const static array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 348 function 349 with parameters 350 const variable length array of array of instance of type f113 (not function type) with dimension of constant expression 3 signed int 351 returning 352 pointer to signed int 353 354 function 355 with parameters 356 const array of array of instance of type f114 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 357 returning 358 pointer to signed int 359 360 function 361 with parameters 362 static array of array of instance of type f115 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 360 363 returning 361 364 pointer to pointer to signed int … … 363 366 function 364 367 with parameters 365 const static open array of open array of instance of type f116368 const static array of array of instance of type f116 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 366 369 returning 367 370 pointer to const pointer to signed int … … 369 372 function 370 373 with parameters 371 const static open array of open array of instance of type f117374 const static array of array of instance of type f117 (not function type) with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 372 375 returning 373 376 const pointer to const pointer to signed int … … 376 379 signed int 377 380 with body 378 381 CompoundStmt 382 -
src/Tests/SynTree/Expected/VariableDeclarator.tst
rcd623a4 r5f2f2d7 1 f1: asigned int2 f2: asigned int3 f3: apointer to signed int4 f4: apointer to pointer to signed int5 f5: apointer to const pointer to signed int6 f6: aconst pointer to const pointer to signed int7 f7: apointer to signed int8 f8: apointer to pointer to signed int9 f9: apointer to const pointer to signed int10 f10: aconst pointer to const pointer to signed int11 f11: apointer to signed int12 f12: apointer to pointer to signed int13 f13: apointer to const pointer to signed int14 f14: aconst pointer to const pointer to signed int15 f15: aopen array of signed int16 f16: a open array ofsigned int17 f17: aopen array of signed int18 f18: a open array ofsigned int19 f19: aopen array of pointer to signed int20 f20: a open array of pointer tosigned int21 f21: aopen array of pointer to pointer to signed int22 f22: a open array of pointer to pointer tosigned int23 f23: aopen array of pointer to const pointer to signed int24 f24: a open array of pointer to const pointer tosigned int25 f25: aopen array of const pointer to const pointer to signed int26 f26: a open array of const pointer to const pointer tosigned int27 f27: aopen array of pointer to signed int28 f28: a open array of pointer tosigned int29 f29: aopen array of pointer to pointer to signed int30 f30: a open array of pointer to pointer tosigned int31 f31: aopen array of pointer to const pointer to signed int32 f32: a open array of pointer to const pointer tosigned int33 f33: aopen array of const pointer to const pointer to signed int34 f34: a open array of const pointer to const pointer tosigned int35 f35: aopen array of pointer to signed int36 f36: a open array of pointer tosigned int37 f37: aopen array of pointer to pointer to signed int38 f38: a open array of pointer to pointer tosigned int39 f39: aopen array of pointer to const pointer to signed int40 f40: a open array of pointer to const pointer tosigned int41 f41: aopen array of const pointer to const pointer to signed int42 f42: a open array of const pointer to const pointer tosigned int43 f43: a open array of open array ofsigned int44 f44: a open array of open array ofsigned int45 f45: a open array of open array ofsigned int46 f46: a open array of open array ofsigned int47 f47: a open array of open array ofsigned int48 f48: a open array of open array ofsigned int49 f49: a open array of open array of pointer tosigned int50 f50: a open array of open array of pointer tosigned int51 f51: a open array of open array of pointer to pointer tosigned int52 f52: a open array of open array of pointer to pointer tosigned int53 f53: a open array of open array of pointer to const pointer tosigned int54 f54: a open array of open array of pointer to const pointer tosigned int55 f55: a open array of open array of const pointer to const pointer tosigned int56 f56: a open array of open array of const pointer to const pointer tosigned int57 f57: a open array of open array of pointer tosigned int58 f58: a open array of open array of pointer tosigned int59 f59: a open array of open array of pointer to pointer tosigned int60 f60: a open array of open array of pointer to pointer tosigned int61 f61: a open array of open array of pointer to const pointer tosigned int62 f62: a open array of open array of pointer to const pointer tosigned int63 f63: a open array of open array of const pointer to const pointer tosigned int64 f64: a open array of open array of const pointer to const pointer tosigned int65 f65: afunction1 f1: signed int 2 f2: signed int 3 f3: pointer to signed int 4 f4: pointer to pointer to signed int 5 f5: pointer to const pointer to signed int 6 f6: const pointer to const pointer to signed int 7 f7: pointer to signed int 8 f8: pointer to pointer to signed int 9 f9: pointer to const pointer to signed int 10 f10: const pointer to const pointer to signed int 11 f11: pointer to signed int 12 f12: pointer to pointer to signed int 13 f13: pointer to const pointer to signed int 14 f14: const pointer to const pointer to signed int 15 f15: open array of signed int 16 f16: array of signed int with dimension of constant expression 10 signed int 17 f17: open array of signed int 18 f18: array of signed int with dimension of constant expression 10 signed int 19 f19: open array of pointer to signed int 20 f20: array of pointer to signed int with dimension of constant expression 10 signed int 21 f21: open array of pointer to pointer to signed int 22 f22: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 23 f23: open array of pointer to const pointer to signed int 24 f24: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 25 f25: open array of const pointer to const pointer to signed int 26 f26: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 27 f27: open array of pointer to signed int 28 f28: array of pointer to signed int with dimension of constant expression 10 signed int 29 f29: open array of pointer to pointer to signed int 30 f30: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 31 f31: open array of pointer to const pointer to signed int 32 f32: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 33 f33: open array of const pointer to const pointer to signed int 34 f34: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 35 f35: open array of pointer to signed int 36 f36: array of pointer to signed int with dimension of constant expression 10 signed int 37 f37: open array of pointer to pointer to signed int 38 f38: array of pointer to pointer to signed int with dimension of constant expression 10 signed int 39 f39: open array of pointer to const pointer to signed int 40 f40: array of pointer to const pointer to signed int with dimension of constant expression 10 signed int 41 f41: open array of const pointer to const pointer to signed int 42 f42: array of const pointer to const pointer to signed int with dimension of constant expression 10 signed int 43 f43: open array of array of signed int with dimension of constant expression 3 signed int 44 f44: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 45 f45: open array of array of signed int with dimension of constant expression 3 signed int 46 f46: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 47 f47: open array of array of signed int with dimension of constant expression 3 signed int 48 f48: array of array of signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 49 f49: open array of array of pointer to signed int with dimension of constant expression 3 signed int 50 f50: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 51 f51: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 52 f52: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 53 f53: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 54 f54: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 55 f55: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 56 f56: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 57 f57: open array of array of pointer to signed int with dimension of constant expression 3 signed int 58 f58: array of array of pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 59 f59: open array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int 60 f60: array of array of pointer to pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 61 f61: open array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int 62 f62: array of array of pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 63 f63: open array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int 64 f64: array of array of const pointer to const pointer to signed int with dimension of constant expression 3 signed int with dimension of constant expression 3 signed int 65 f65: function 66 66 with parameters 67 67 signed int … … 69 69 signed int 70 70 71 f66: afunction71 f66: function 72 72 with parameters 73 73 signed int … … 75 75 signed int 76 76 77 f67: afunction77 f67: function 78 78 with parameters 79 79 signed int … … 81 81 pointer to signed int 82 82 83 f68: afunction83 f68: function 84 84 with parameters 85 85 signed int … … 87 87 pointer to pointer to signed int 88 88 89 f69: afunction89 f69: function 90 90 with parameters 91 91 signed int … … 93 93 pointer to const pointer to signed int 94 94 95 f70: afunction95 f70: function 96 96 with parameters 97 97 signed int … … 99 99 const pointer to const pointer to signed int 100 100 101 f71: afunction101 f71: function 102 102 with parameters 103 103 signed int … … 105 105 pointer to signed int 106 106 107 f72: afunction107 f72: function 108 108 with parameters 109 109 signed int … … 111 111 pointer to pointer to signed int 112 112 113 f73: afunction113 f73: function 114 114 with parameters 115 115 signed int … … 117 117 pointer to const pointer to signed int 118 118 119 f74: afunction119 f74: function 120 120 with parameters 121 121 signed int … … 123 123 const pointer to const pointer to signed int 124 124 125 f75: apointer to function125 f75: pointer to function 126 126 with parameters 127 127 signed int … … 129 129 signed int 130 130 131 f76: apointer to pointer to function131 f76: pointer to pointer to function 132 132 with parameters 133 133 signed int … … 135 135 signed int 136 136 137 f77: apointer to const pointer to function137 f77: pointer to const pointer to function 138 138 with parameters 139 139 signed int … … 141 141 signed int 142 142 143 f78: aconst pointer to const pointer to function143 f78: const pointer to const pointer to function 144 144 with parameters 145 145 signed int … … 147 147 signed int 148 148 149 f79: apointer to function149 f79: pointer to function 150 150 with parameters 151 151 signed int 152 152 returning 153 153 pointer to function 154 accepting unspecified arguments 154 155 returning 155 156 signed int 156 157 157 158 158 f80: aconst pointer to function159 f80: const pointer to function 159 160 with parameters 160 161 signed int 161 162 returning 162 163 pointer to function 164 accepting unspecified arguments 163 165 returning 164 166 signed int 165 167 166 168 167 f81: aconst pointer to function169 f81: const pointer to function 168 170 with parameters 169 171 signed int 170 172 returning 171 173 const pointer to function 174 accepting unspecified arguments 172 175 returning 173 176 signed int 174 177 175 178 176 z: a pointer to open array of double177 w: a open array of pointer to char178 v3: apointer to open array of pointer to open array of pointer to function179 z: pointer to array of double with dimension of constant expression 20 signed int 180 w: array of pointer to char with dimension of constant expression 20 signed int 181 v3: pointer to open array of pointer to open array of pointer to function 179 182 with parameters 180 183 pointer to open array of pointer to open array of signed int -
src/Tests/SynTree/make-rules
rcd623a4 r5f2f2d7 1 1 CFA = ../../cfa-cpp 2 2 3 DIFF = diff#/software/gnu/bin/diff 3 EXPECTED := ${wildcard ${EXPECTDIR}/*.tst} 4 TESTS := ${EXPECTED:${EXPECTDIR}/%=${OUTPUTDIR}/%} 5 TEST_IN := ${TESTS:.tst=.c} 4 6 5 # Basic SynTree printing 6 EXPECTED := ${wildcard $(EXPECTDIR)/*.tst} 7 TESTS := $(EXPECTED:$(EXPECTDIR)/%=$(OUTPUTDIR)/%) 8 TEST_IN := $(TESTS:.tst=.c) 7 .SILENT : 9 8 10 $ (OUTPUTDIR)/%.tst : %.c $(CFA)11 $(CFA) $(CFAOPT)< $< > $@ 2>&19 ${OUTPUTDIR}/%.tst : %.c ${CFA} 10 -${CFA} ${CFAOPT} < $< > $@ 2>&1 12 11 13 $ (OUTPUTDIR)/report : $(TESTS) $(EXPECTED)12 ${OUTPUTDIR}/report : ${TESTS} ${EXPECTED} 14 13 rm -f $@ 15 @for i in $ (TESTS); do \14 @for i in ${TESTS}; do \ 16 15 echo "---"`basename $$i`"---" | tee -a $@; \ 17 $(DIFF) -B -w $(EXPECTDIR)/`basename $$i` $$i | tee -a $@; \16 diff -B -w ${EXPECTDIR}/`basename $$i` $$i | tee -a $@; \ 18 17 done 19 18 20 19 clean : 21 rm -rf $ (OUTPUTDIR)20 rm -rf ${OUTPUTDIR} -
src/Tests/SynTree/run-tests.sh
rcd623a4 r5f2f2d7 1 #!/bin/sh - v1 #!/bin/sh - 2 2 3 3 dotest() {
Note:
See TracChangeset
for help on using the changeset viewer.