From 7301b42e362adb45120d4bb738deb18572ce4862 Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Sun, 22 Nov 2015 00:00:36 +0000 Subject: tccgen.c: Try to make sizeof(!x) work. tests/tests2/27_sizeof.*: Add test. --- tests/tests2/27_sizeof.c | 2 ++ tests/tests2/27_sizeof.expect | 1 + 2 files changed, 3 insertions(+) (limited to 'tests/tests2') 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 -- cgit v1.3.1