Changeset 207c7330
- Timestamp:
- Aug 31, 2020, 12:28:13 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4ef08f7
- Parents:
- d5f4613
- Location:
- tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/.expect/castError.txt ¶
rd5f4613 r207c7330 3 3 Name: f 4 4 ... to: 5 char6 with resolved type:7 5 char Alternatives are: 8 6 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: … … 11 9 ... returning nothing 12 10 13 with resolved type:14 pointer to function15 accepting unspecified arguments16 ... returning nothing17 18 11 ... to: 19 char20 with resolved type:21 12 char 22 13 (types: … … 27 18 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: 28 19 Variable Expression: f: double 29 with resolved type:30 double31 20 ... to: 32 char33 with resolved type:34 21 char 35 22 (types: … … 40 27 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: 41 28 Variable Expression: f: signed int 42 with resolved type:43 signed int44 29 ... to: 45 char46 with resolved type:47 30 char 48 31 (types: … … 56 39 Comma Expression: 57 40 constant expression (3 3: signed int) 58 with resolved type:59 signed int60 41 Name: v 61 ... to: nothing 62 with resolved type: 63 void Alternatives are: 42 ... to: nothing Alternatives are: 64 43 Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of: 65 44 Comma Expression: 66 45 constant expression (3 3: signed int) 67 with resolved type:68 signed int69 46 Variable Expression: v: unsigned char 70 with resolved type:71 unsigned char72 with resolved type:73 unsigned char74 47 ... to: nothing 75 with resolved type:76 void77 48 (types: 78 49 void … … 83 54 Comma Expression: 84 55 constant expression (3 3: signed int) 85 with resolved type:86 signed int87 56 Variable Expression: v: signed short int 88 with resolved type:89 signed short int90 with resolved type:91 signed short int92 57 ... to: nothing 93 with resolved type:94 void95 58 (types: 96 59 void … … 106 69 char 107 70 108 with resolved type:109 instance of struct S with body 1110 ... with parameters111 char112 -
TabularUnified tests/.expect/init1.txt ¶
rd5f4613 r207c7330 11 11 ... to: 12 12 reference to signed int 13 with resolved type:14 reference to signed int15 13 init1.cfa:97:1 error: No reasonable alternatives for expression Applying untyped: 16 14 Name: ?{} … … 18 16 Generated Cast of: 19 17 Variable Expression: _retval_f_py: pointer to signed int 20 with resolved type:21 pointer to signed int22 18 ... to: 23 reference to pointer to signed int24 with resolved type:25 19 reference to pointer to signed int 26 20 Name: px … … 30 24 ... to: 31 25 reference to float 32 with resolved type:33 reference to float34 26 init1.cfa:107:1 error: No reasonable alternatives for expression Applying untyped: 35 27 Name: ?{} … … 37 29 Generated Cast of: 38 30 Variable Expression: _retval_f_py2: pointer to float 39 with resolved type:40 pointer to float41 31 ... to: 42 reference to pointer to float43 with resolved type:44 32 reference to pointer to float 45 33 Name: cpx … … 49 37 ... to: 50 38 reference to instance of type T (not function type) 51 with resolved type:52 reference to instance of type T (not function type)53 39 init1.cfa:118:1 error: No reasonable alternatives for expression Applying untyped: 54 40 Name: ?{} … … 56 42 Generated Cast of: 57 43 Variable Expression: _retval_anycvt: pointer to instance of type T (not function type) 58 with resolved type:59 pointer to instance of type T (not function type)60 44 ... to: 61 reference to pointer to instance of type T (not function type)62 with resolved type:63 45 reference to pointer to instance of type T (not function type) 64 46 Name: s -
TabularUnified tests/errors/.expect/completeType.x64.txt ¶
rd5f4613 r207c7330 6 6 Name: x 7 7 8 ... to: nothing 9 with resolved type: 10 void Alternatives are: 8 ... to: nothing Alternatives are: 11 9 Cost ( 0, 1, 2, 0, 1, -1, 0 ): Generated Cast of: 12 10 Application of … … 22 20 23 21 24 with resolved type:25 pointer to forall26 _90_4_DT: data type27 function28 ... with parameters29 intrinsic pointer to instance of type _90_4_DT (not function type)30 ... returning31 _retval__operator_deref: reference to instance of type _90_4_DT (not function type)32 ... with attributes:33 Attribute with name: unused34 35 36 22 ... to arguments 37 23 Variable Expression: x: pointer to instance of struct A with body 0 38 with resolved type:39 pointer to instance of struct A with body 040 24 41 with resolved type:42 reference to instance of struct A with body 043 25 ... to: nothing 44 with resolved type:45 void46 26 (types: 47 27 void … … 63 43 64 44 65 with resolved type:66 pointer to forall67 _90_4_DT: data type68 function69 ... with parameters70 intrinsic pointer to instance of type _90_4_DT (not function type)71 ... returning72 _retval__operator_deref: reference to instance of type _90_4_DT (not function type)73 ... with attributes:74 Attribute with name: unused75 76 77 45 ... to arguments 78 46 Variable Expression: x: pointer to instance of struct B with body 1 79 with resolved type:80 pointer to instance of struct B with body 181 47 82 with resolved type:83 reference to instance of struct B with body 184 48 ... to: nothing 85 with resolved type:86 void87 49 (types: 88 50 void … … 159 121 ... returning nothing 160 122 161 with resolved type:162 pointer to forall163 _109_0_T: sized data type164 ... with assertions165 ?=?: pointer to function166 ... with parameters167 reference to instance of type _109_0_T (not function type)168 instance of type _109_0_T (not function type)169 ... returning170 _retval__operator_assign: instance of type _109_0_T (not function type)171 ... with attributes:172 Attribute with name: unused173 174 175 ?{}: pointer to function176 ... with parameters177 reference to instance of type _109_0_T (not function type)178 ... returning nothing179 180 ?{}: pointer to function181 ... with parameters182 reference to instance of type _109_0_T (not function type)183 instance of type _109_0_T (not function type)184 ... returning nothing185 186 ^?{}: pointer to function187 ... with parameters188 reference to instance of type _109_0_T (not function type)189 ... returning nothing190 191 192 function193 ... with parameters194 pointer to instance of type _109_0_T (not function type)195 ... returning nothing196 197 123 ... to arguments 198 124 Variable Expression: z: pointer to instance of type T (not function type) 199 with resolved type:200 pointer to instance of type T (not function type)201 125 202 with resolved type:203 void204 126 (types: 205 127 void -
TabularUnified tests/raii/.expect/ctor-autogen-ERR1.txt ¶
rd5f4613 r207c7330 7 7 x: signed int 8 8 ... returning nothing 9 10 with resolved type:11 function12 ... with parameters13 _dst: reference to instance of struct Managed with body 114 x: signed int15 ... returning nothing16 9 17 10 ... deleted by: ?{}: function … … 33 26 34 27 35 with resolved type:36 pointer to function37 ... with parameters38 intrinsic reference to signed int39 intrinsic signed int40 ... returning41 _retval__operator_assign: signed int42 ... with attributes:43 Attribute with name: unused44 45 46 28 ... to arguments 47 29 Generated Cast of: … … 51 33 Generated Cast of: 52 34 Variable Expression: m: reference to instance of struct Managed with body 1 53 with resolved type:54 reference to instance of struct Managed with body 155 35 ... to: 56 36 instance of struct Managed with body 1 57 with resolved type:58 instance of struct Managed with body 159 with resolved type:60 signed int61 37 ... to: 62 reference to signed int63 with resolved type:64 38 reference to signed int 65 39 Generated Cast of: 66 40 constant expression (0 0: zero_t) 67 with resolved type:68 zero_t69 41 ... to: 70 42 signed int 71 with resolved type:72 signed int73 43 74 with resolved type:75 signed int76 44 ... with environment: 77 45 Types: … … 82 50 Generated Cast of: 83 51 Variable Expression: x: instance of struct Managed with body 1 84 with resolved type:85 instance of struct Managed with body 186 52 ... to: 87 53 reference to instance of struct Managed with body 1 88 with resolved type:89 reference to instance of struct Managed with body 190 54 constant expression (123 123: signed int) 91 with resolved type:92 signed int93 55 94 with resolved type:95 void96 56 ... to: nothing 97 with resolved type:98 void -
TabularUnified tests/warnings/.expect/self-assignment.txt ¶
rd5f4613 r207c7330 1 1 warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of: 2 2 Variable Expression: j: signed int 3 with resolved type:4 signed int5 3 ... to: 6 reference to signed int7 with resolved type:8 4 reference to signed int 9 5 warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of: 10 6 Variable Expression: s: instance of struct S with body 1 11 with resolved type:12 instance of struct S with body 113 7 ... to: 14 reference to instance of struct S with body 115 with resolved type:16 8 reference to instance of struct S with body 1 17 9 warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of: … … 20 12 ... from aggregate: 21 13 Variable Expression: s: instance of struct S with body 1 22 with resolved type:23 instance of struct S with body 124 with resolved type:25 signed int26 14 ... to: 27 reference to signed int28 with resolved type:29 15 reference to signed int 30 16 warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of: … … 36 22 ... from aggregate: 37 23 Variable Expression: t: instance of struct T with body 1 38 with resolved type:39 instance of struct T with body 140 with resolved type:41 instance of struct S with body 142 with resolved type:43 signed int44 24 ... to: 45 25 reference to signed int 46 with resolved type:47 reference to signed int
Note: See TracChangeset
for help on using the changeset viewer.