source: tests/.expect/castError.oast.txt @ aa8e24c3

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since aa8e24c3 was 3233b91, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Fix left erros in old AST

  • 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: double
10      with resolved type:
11        double
12    ... to:
13      char
14    with resolved type:
15      char
16  (types:
17    char
18  )
19  Environment:
20
21Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
22      Variable Expression: f: function
23        accepting unspecified arguments
24      ... returning nothing
25
26      with resolved type:
27        pointer to function
28          accepting unspecified arguments
29        ... returning nothing
30
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: signed short int
70        with resolved type:
71          signed short int
72      with resolved type:
73        signed short int
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: unsigned char
88        with resolved type:
89          unsigned char
90      with resolved type:
91        unsigned char
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.