aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-04 14:41:11 +0900
committernsfisis <nsfisis@gmail.com>2025-05-04 14:41:11 +0900
commitda79bc1f3c71149ad171d5d2945636d7464a00ef (patch)
tree48c1d3cc18dd0404cfac0a19286bedbd9bfc28e6 /tests
parent298977906d005ec026778286591f5843406291b7 (diff)
downloadP4Dcc-da79bc1f3c71149ad171d5d2945636d7464a00ef.tar.gz
P4Dcc-da79bc1f3c71149ad171d5d2945636d7464a00ef.tar.zst
P4Dcc-da79bc1f3c71149ad171d5d2945636d7464a00ef.zip
support ref/deref
Diffstat (limited to 'tests')
-rw-r--r--tests/022.sh15
1 files changed, 15 insertions, 0 deletions
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