aboutsummaryrefslogtreecommitdiff
path: root/tcctest.c
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>2009-04-13 04:02:52 +0900
committergrischka <grischka>2009-04-18 15:08:01 +0200
commit0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7 (patch)
tree3c4b6cb75f0b65e9d56ab19929e1828534e02e6c /tcctest.c
parentfcf2e5981fe5e37e3aee633b414486311e54bc8e (diff)
downloadtinycc-0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7.tar.gz
tinycc-0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7.tar.bz2
Improve the test coverage: !val for float/double/long long f.
Diffstat (limited to 'tcctest.c')
-rw-r--r--tcctest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcctest.c b/tcctest.c
index 012a51b..bc6818b 100644
--- a/tcctest.c
+++ b/tcctest.c
@@ -1420,6 +1420,8 @@ void prefix ## cmp(type a, type b)\
printf(fmt "\n", ++a);\
printf(fmt "\n", a++);\
printf(fmt "\n", a);\
+ b = 0;\
+ printf("%d %d\n", !a, !b);\
}\
void prefix ## fcast(type a)\
{\
@@ -1583,6 +1585,8 @@ void lloptest(long long a, long long b)
printf("arith2: %Ld %Ld\n", a++, b++);
printf("arith2: %Ld %Ld\n", --a, --b);
printf("arith2: %Ld %Ld\n", a, b);
+ b = ub = 0;
+ printf("not: %d %d %d %d\n", !a, !ua, !b, !ub);
}
void llshift(long long a, int b)