From da79bc1f3c71149ad171d5d2945636d7464a00ef Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 4 May 2025 14:41:11 +0900 Subject: support ref/deref --- tests/022.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/022.sh (limited to 'tests/022.sh') diff --git a/tests/022.sh b/tests/022.sh new file mode 100644 index 0000000..e9c8103 --- /dev/null +++ b/tests/022.sh @@ -0,0 +1,15 @@ +set -e + +cat <<'EOF' > expected +42 42 +EOF +bash ../../test_diff.sh <<'EOF' +int main() { + int x; + int* y; + y = &x; + *y = 42; + printf("%d %d\n", x, *y); + return 0; +} +EOF -- cgit v1.2.3-70-g09d2