aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/104.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/104.sh b/tests/104.sh
new file mode 100644
index 0000000..d385e23
--- /dev/null
+++ b/tests/104.sh
@@ -0,0 +1,32 @@
+cat <<'EOF' > expected
+4
+EOF
+test_diff <<'EOF'
+struct S0;
+typedef struct S0 S0;
+
+struct S1 {
+ int x;
+};
+
+struct S2 {
+ int x;
+};
+
+struct S3 {
+ int x;
+};
+
+struct S4 {
+ int x;
+};
+
+struct S0 {
+ int x;
+};
+
+int printf(const char*, ...);
+int main() {
+ printf("%zu\n", sizeof(S0));
+}
+EOF