From 9b52864932ec81033b5c9d34a81828d54192b958 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 27 Apr 2019 16:15:11 -0700 Subject: Fix some function declarator corner cases --- test/abstract-function-declarator.c | 16 ++++++++++++++++ test/abstract-function-declarator.qbe | 0 2 files changed, 16 insertions(+) create mode 100644 test/abstract-function-declarator.c create mode 100644 test/abstract-function-declarator.qbe (limited to 'test') diff --git a/test/abstract-function-declarator.c b/test/abstract-function-declarator.c new file mode 100644 index 0000000..b6808a6 --- /dev/null +++ b/test/abstract-function-declarator.c @@ -0,0 +1,16 @@ +typedef int x; + +void f1(int(x)); +void f1(int (*)(int)); + +void f2(int(y)); +void f2(int); + +void f3(int((*))); +void f3(int *); + +void f4(int((*x))); +void f4(int *); + +void f5(int((x))); +void f5(int (*)(int)); diff --git a/test/abstract-function-declarator.qbe b/test/abstract-function-declarator.qbe new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3