diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-04-13 04:02:52 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:01 +0200 |
| commit | 0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7 (patch) | |
| tree | 3c4b6cb75f0b65e9d56ab19929e1828534e02e6c /tcctest.c | |
| parent | fcf2e5981fe5e37e3aee633b414486311e54bc8e (diff) | |
| download | tinycc-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
