aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-13 21:07:22 +0900
committernsfisis <nsfisis@gmail.com>2025-09-13 21:07:22 +0900
commit219653a7a1ff36776580c79f4e288e82bbcf057d (patch)
treee2ccbcf6c1da0c6b34b75e16968ed2ce6adce8fa /tests
parentd8165f2b38c6405d506649d93112bad62d3d9ec0 (diff)
downloadducc-219653a7a1ff36776580c79f4e288e82bbcf057d.tar.gz
ducc-219653a7a1ff36776580c79f4e288e82bbcf057d.tar.zst
ducc-219653a7a1ff36776580c79f4e288e82bbcf057d.zip
feat: support parsing function pointer declaration
Diffstat (limited to 'tests')
-rw-r--r--tests/test_function_pointers.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_function_pointers.sh b/tests/test_function_pointers.sh
new file mode 100644
index 0000000..c97a087
--- /dev/null
+++ b/tests/test_function_pointers.sh
@@ -0,0 +1,12 @@
+cat <<'EOF' > expected
+EOF
+
+test_diff <<'EOF'
+int* f(int a);
+int (*f)(int a);
+
+extern int atexit (void (*) (void));
+extern int atexit (void (*fn) (void));
+
+int main() {}
+EOF