From 34181f22cd6cec033a3136a7eb3c363c9e56d449 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 29 Aug 2025 22:20:36 +0900 Subject: fix: dangling pointer --- tests/104.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/104.sh (limited to 'tests') 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 -- cgit v1.2.3-70-g09d2