source: tests/.expect/castError.txt @ 03a4c73

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 03a4c73 was 03a4c73, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Regenerated tests after add of 'with resolved type'

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[1d17939]1castError.cfa:23:1 error: Cannot choose between 3 alternatives for expression
[b9afb1e]2Explicit Cast of:
[4efe4d1]3  Name: f
[50377a4]4... to:
[03a4c73]5  char
6with resolved type:
[588c2b0]7  char Alternatives are:
[b9afb1e]8Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
[dd857bb]9      Variable Expression: f: function
10        accepting unspecified arguments
11      ... returning nothing
[c2c6177]12
[03a4c73]13      with resolved type:
14        pointer to function
15          accepting unspecified arguments
16        ... returning nothing
17
[dd857bb]18    ... to:
19      char
[03a4c73]20    with resolved type:
21      char
[dd857bb]22  (types:
23    char
24  )
25  Environment:
[50377a4]26
[b9afb1e]27Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
[dd857bb]28      Variable Expression: f: double
[03a4c73]29      with resolved type:
30        double
[dd857bb]31    ... to:
32      char
[03a4c73]33    with resolved type:
34      char
[dd857bb]35  (types:
36    char
37  )
38  Environment:
[50377a4]39
[b9afb1e]40Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of:
[dd857bb]41      Variable Expression: f: signed int
[03a4c73]42      with resolved type:
43        signed int
[dd857bb]44    ... to:
45      char
[03a4c73]46    with resolved type:
47      char
[dd857bb]48  (types:
49    char
50  )
51  Environment:
[4efe4d1]52
53
[1d17939]54castError.cfa:28:1 error: Cannot choose between 2 alternatives for expression
[b9afb1e]55Generated Cast of:
56  Comma Expression:
57    constant expression (3 3: signed int)
[03a4c73]58    with resolved type:
59      signed int
[b9afb1e]60    Name: v
[03a4c73]61... to: nothing
62with resolved type:
63  void  Alternatives are:
[b9afb1e]64Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
[dd857bb]65      Comma Expression:
66        constant expression (3 3: signed int)
[03a4c73]67        with resolved type:
68          signed int
[dd857bb]69        Variable Expression: v: unsigned char
[03a4c73]70        with resolved type:
71          unsigned char
72      with resolved type:
73        unsigned char
[dd857bb]74    ... to: nothing
[03a4c73]75    with resolved type:
76      void
[dd857bb]77  (types:
78    void
79  )
80  Environment:
[b9afb1e]81
82Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of:
[dd857bb]83      Comma Expression:
84        constant expression (3 3: signed int)
[03a4c73]85        with resolved type:
86          signed int
[dd857bb]87        Variable Expression: v: signed short int
[03a4c73]88        with resolved type:
89          signed short int
90      with resolved type:
91        signed short int
[dd857bb]92    ... to: nothing
[03a4c73]93    with resolved type:
94      void
[dd857bb]95  (types:
96    void
97  )
98  Environment:
[b9afb1e]99
100
[1d17939]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
[03a4c73]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.