From 576b2064e05633b34de216e04b71407a5f15164b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 4 May 2025 20:58:02 +0900 Subject: fix parse error if function returns a pointer of struct --- tests/034.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/034.sh (limited to 'tests') diff --git a/tests/034.sh b/tests/034.sh new file mode 100644 index 0000000..12391f4 --- /dev/null +++ b/tests/034.sh @@ -0,0 +1,17 @@ +set -e + +cat <<'EOF' > expected +EOF +bash ../../test_diff.sh <<'EOF' +struct S { + int a; +}; + +struct S* f(); + +struct S* g() {} + +int main() { + return 0; +} +EOF -- cgit v1.2.3-70-g09d2