From 219653a7a1ff36776580c79f4e288e82bbcf057d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 13 Sep 2025 21:07:22 +0900 Subject: feat: support parsing function pointer declaration --- tests/test_function_pointers.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_function_pointers.sh (limited to 'tests/test_function_pointers.sh') 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 -- cgit v1.2.3-70-g09d2