aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/118.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/118.sh')
-rw-r--r--tests/118.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/118.sh b/tests/118.sh
new file mode 100644
index 0000000..48a8569
--- /dev/null
+++ b/tests/118.sh
@@ -0,0 +1,19 @@
+cat <<'EOF' > expected
+400
+80
+16
+EOF
+
+test_diff <<'EOF'
+int printf();
+
+int main() {
+ int a[10 * 10];
+ int b[10 + 10];
+ int c[1 << 2];
+
+ printf("%zu\n", sizeof(a));
+ printf("%zu\n", sizeof(b));
+ printf("%zu\n", sizeof(c));
+}
+EOF