diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-13 21:07:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-13 21:07:22 +0900 |
| commit | 219653a7a1ff36776580c79f4e288e82bbcf057d (patch) | |
| tree | e2ccbcf6c1da0c6b34b75e16968ed2ce6adce8fa /tests | |
| parent | d8165f2b38c6405d506649d93112bad62d3d9ec0 (diff) | |
| download | ducc-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.sh | 12 |
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 |
