source: tests/.expect/castError.txt @ b6f2e7ab

Last change on this file since b6f2e7ab was db19e1d, checked in by Andrew Beach <ajbeach@…>, 8 days ago

Changed the interpritation of () to be no parameters instead of any parameters. This had a lot of little changes because of this and some nearby clean-up. This includes some changes, including changing some generated functions to be fixed-args instead of variable-args, stripping out the place holder void parameter earlier, but it still shows up earlier in some cases that examine the parser directly. Also had to update the function generation tools. Have only tested with one --arch. Hopefully this all works out.

  • 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
6... with resolved type:
7  char Alternatives are:
8Cost ( 1, 0, 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, 0 ): Explicit Cast of:
22      Variable Expression: f: function
23      ... returning nothing
24
25      ... with resolved type:
26        pointer to function
27        ... returning nothing
28
29    ... to:
30      char
31    ... with resolved type:
32      char
33  (types:
34    char
35  )
36  Environment:
37
38Cost ( 1, 0, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
39      Variable Expression: f: signed int
40      ... with resolved type:
41        signed int
42    ... to:
43      char
44    ... with resolved type:
45      char
46  (types:
47    char
48  )
49  Environment:
50
51
52castError.cfa:28:1 error: Cannot choose between 2 alternatives for expression
53Generated Cast of:
54  Comma Expression:
55    Constant Expression (3: signed int)
56    ... with resolved type:
57      signed int
58    Name: v
59... to: nothing
60... with resolved type:
61  void Alternatives are:
62Cost ( 0, 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
63      Comma Expression:
64        Constant Expression (3: signed int)
65        ... with resolved type:
66          signed int
67        Variable Expression: v: signed short int
68        ... with resolved type:
69          signed short int
70      ... with resolved type:
71        signed short int
72    ... to: nothing
73    ... with resolved type:
74      void
75  (types:
76    void
77  )
78  Environment:
79
80Cost ( 0, 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
81      Comma Expression:
82        Constant Expression (3: signed int)
83        ... with resolved type:
84          signed int
85        Variable Expression: v: unsigned char
86        ... with resolved type:
87          unsigned char
88      ... with resolved type:
89        unsigned char
90    ... to: nothing
91    ... with resolved type:
92      void
93  (types:
94    void
95  )
96  Environment:
97
98
99castError.cfa:30:1 error: Invalid application of existing declaration(s) in expression Explicit Cast of:
100  Name: sint
101... to:
102  instance of struct S with body
103  ... with parameters
104    char
105
106... with resolved type:
107  instance of struct S with body
108  ... with parameters
109    char
110
Note: See TracBrowser for help on using the repository browser.