[C2hs] c2hs + language.c

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sat Jan 24 16:03:29 EST 2009


On Sat, 2009-01-24 at 21:38 +0100, Benedikt Huber wrote:
> On 24.01.2009, at 19:44, Duncan Coutts wrote:
> > On Sat, 2009-01-24 at 16:57 +0000, Duncan Coutts wrote:
> >> I've pulled the changes and I'm just trying to get some tests  
> >> running.
> >> You added ./tests/bugs/call_capital/ but I can't seem to make it  
> >> work.
> >> It's looking for a "capital.h" but there's no such file.

> Update:
> As I said, the call_capital test works for me,

Yep, fixed that one. Just a case sensitive file system issue.

> but there seem to be some files missing in tests/system:

I seem to be missing at least structs.expect

I've also got no sizeof files but the makefile mentions them.

Do you have either?

> Running the tests, all succeed but one on my system:
> 
>  > ---=== Output for `sizeof':
>  > sizeof: Fatal: sizeof s3 != size_of_s3(): 10 but expected 12
>  > !!! sizeof FAILED: Maybe related to bug #10
>  >
>  >typedef struct s3 {
>  >  struct {
>  >        int a : BFSZ(int,13);
>  >        int b : BFSZ(int,13);
>  >        int b_1: BFSZ(int,13);
>  >        int b_2: BFSZ(int,13);
>  >        int b_3: BFSZ(int,13);
>  >  } f0;
> 
> This "bug" was also present in the last version of c2hs, though, so no  
> regression.

Ah, does that mean you do have the sizeof files?

Duncan



More information about the C2hs mailing list