From 8047c8beca7a5d04c206cf5ffc3eea9ba1e33f10 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 4 May 2025 21:42:26 +0900 Subject: support return stmt without result --- tests/037.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/037.sh (limited to 'tests') diff --git a/tests/037.sh b/tests/037.sh new file mode 100644 index 0000000..bc6867b --- /dev/null +++ b/tests/037.sh @@ -0,0 +1,18 @@ +set -e + +cat <<'EOF' > expected +hi +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); + +void f() { + printf("hi\n"); + return; +} + +int main() { + f(); + return 0; +} +EOF -- cgit v1.2.3-70-g09d2