From 891377ce1962cdb31357d6580d6546ec22df2b4f Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 3 Mar 2010 10:22:27 +0000 Subject: Switching to the new C parser/elaborator/simplifier git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1269 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/regression/funptr1.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/regression/funptr1.c (limited to 'test/regression/funptr1.c') diff --git a/test/regression/funptr1.c b/test/regression/funptr1.c new file mode 100644 index 00000000..9bb7046d --- /dev/null +++ b/test/regression/funptr1.c @@ -0,0 +1,10 @@ +int (*pf)(void); +int f(void) { + + pf = &f; // This looks ok + pf = ***f; // Dereference a function? + pf(); // Invoke a function pointer? + (****pf)(); // Looks strange but Ok + (***************f)(); // Also Ok + return 0; +} -- cgit