source: tests/.expect/castError.oast.txt@ 63ec5fa

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast-unique-expr pthread-emulation qualifiedEnum stuck-waitfor-destruct
Last change on this file since 63ec5fa was 63ec5fa, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Fixed cast error tests

  • Property mode set to 100644
File size: 2.3 KB
Line 
1castError.cfa:23:1 error: Cannot choose between 3 alternatives for expression
2Explicit Cast of:
3 Name: f
4... to:
5 char
6with resolved type:
7 char Alternatives are:
8Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
9 Variable Expression: f: function
10 accepting unspecified arguments
11 ... returning nothing
12
13 with resolved type:
14 pointer to function
15 accepting unspecified arguments
16 ... returning nothing
17
18 ... to:
19 char
20 with resolved type:
21 char
22 (types:
23 char
24 )
25 Environment:
26
27Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
28 Variable Expression: f: double
29 with resolved type:
30 double
31 ... to:
32 char
33 with resolved type:
34 char
35 (types:
36 char
37 )
38 Environment:
39
40Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
41 Variable Expression: f: signed int
42 with resolved type:
43 signed int
44 ... to:
45 char
46 with resolved type:
47 char
48 (types:
49 char
50 )
51 Environment:
52
53
54castError.cfa:28:1 error: Cannot choose between 2 alternatives for expression
55Generated Cast of:
56 Comma Expression:
57 constant expression (3 3: signed int)
58 with resolved type:
59 signed int
60 Name: v
61... to: nothing
62with resolved type:
63 void Alternatives are:
64Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
65 Comma Expression:
66 constant expression (3 3: signed int)
67 with resolved type:
68 signed int
69 Variable Expression: v: unsigned char
70 with resolved type:
71 unsigned char
72 with resolved type:
73 unsigned char
74 ... to: nothing
75 with resolved type:
76 void
77 (types:
78 void
79 )
80 Environment:
81
82Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
83 Comma Expression:
84 constant expression (3 3: signed int)
85 with resolved type:
86 signed int
87 Variable Expression: v: signed short int
88 with resolved type:
89 signed short int
90 with resolved type:
91 signed short int
92 ... to: nothing
93 with resolved type:
94 void
95 (types:
96 void
97 )
98 Environment:
99
100
101castError.cfa:30:1 error: No reasonable alternatives for expression Explicit Cast of:
102 Name: sint
103... to:
104 instance of struct S with body 1
105 ... with parameters
106 char
107
108with resolved type:
109 instance of struct S with body 1
110 ... with parameters
111 char
112
Note: See TracBrowser for help on using the repository browser.