From 0385817bb1301a778bb33f8405a435293b9f8905 Mon Sep 17 00:00:00 2001 From: David Moc Date: Thu, 5 Mar 2026 23:38:49 +0100 Subject: Pushing to repo for safety. --- tests/pointers.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/pointers.c (limited to 'tests/pointers.c') diff --git a/tests/pointers.c b/tests/pointers.c new file mode 100644 index 0000000..669aa2e --- /dev/null +++ b/tests/pointers.c @@ -0,0 +1,13 @@ +int main() { + int x = 42; + int *p = &x; + int **pp = &p; + + int val1 = *p; + int val2 = **pp; + + *p = 100; + int val3 = x; + + return val1 + val2 + val3; +} -- cgit v1.2.3