Skip to content

Commit 231e60c

Browse files
committed
Update doc and tests
1 parent 09ef065 commit 231e60c

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 6.6.0
2+
- Implemented proper boolean type for C
3+
- Fixed -- operator for floats
4+
15
Version 6.5.4
26
- Minor optimization improvement (and major documentation improvements) courtesy of Ada
37

Test/Expect/cexec02.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
x = 1122334455667788 y = aaccef10 : 22446688 z = 9abcdef01234
2+
a = 0 b=1
3+
a = 1 b=0
4+
a = 1 b=1
5+
a = 1 b=0

Test/cexec02.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ void myexit(int n)
1919
#endif
2020
}
2121

22+
void trybool(int *xp) {
23+
_Bool a = !xp;
24+
_Bool b = xp;
25+
int i;
26+
27+
for (i = 0; i < 4; i++) {
28+
printf("a = %d b=%d\n", a, b);
29+
a++;
30+
b--;
31+
}
32+
}
33+
2234
//
2335
// declaring main like this should pull in the c_start routine,
2436
// which should be harmless for tests
@@ -27,8 +39,10 @@ int main(int argc, char **argv)
2739
{
2840
long long x = 0x1122334455667788;
2941
long long y;
42+
int z;
3043
y = x + x;
3144
printf("x = %llx y = %x : %x z = %llx\n", x, y, 0x9abcdef01234LL, 1);
45+
trybool(&z);
3246
myexit(0);
3347
return 0;
3448
}

0 commit comments

Comments
 (0)