diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-22 00:00:36 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-11-22 00:00:36 +0000 |
| commit | 7301b42e362adb45120d4bb738deb18572ce4862 (patch) | |
| tree | aba0b3af14cad176c6fc8474c4b25694051aaa87 /tests | |
| parent | 737f9842138aca6e4b6f44e26773288bb4dccd58 (diff) | |
| download | tinycc-7301b42e362adb45120d4bb738deb18572ce4862.tar.gz tinycc-7301b42e362adb45120d4bb738deb18572ce4862.tar.bz2 | |
tccgen.c: Try to make sizeof(!x) work.
tests/tests2/27_sizeof.*: Add test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tests2/27_sizeof.c | 2 | ||||
| -rw-r--r-- | tests/tests2/27_sizeof.expect | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/tests2/27_sizeof.c b/tests/tests2/27_sizeof.c index d1694b6..5ae0ede 100644 --- a/tests/tests2/27_sizeof.c +++ b/tests/tests2/27_sizeof.c @@ -10,6 +10,8 @@ int main() printf("%d\n", sizeof(b)); printf("%d\n", sizeof(c)); + printf("%d\n", sizeof(!a)); + return 0; } diff --git a/tests/tests2/27_sizeof.expect b/tests/tests2/27_sizeof.expect index 7329e00..a47ea3a 100644 --- a/tests/tests2/27_sizeof.expect +++ b/tests/tests2/27_sizeof.expect @@ -1,3 +1,4 @@ 1 4 8 +4 |
