diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2009-03-29 09:47:11 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2009-03-29 09:47:11 +0000 |
commit | a5f03d96eee482cd84861fc8cefff9eb451c0cad (patch) | |
tree | cbc66cbc183a7c5ef2c044ed9ed04b8011df9cd4 /cil/test/small1/func.c | |
parent | a9621943087a5578c995d88b06f87c5158eb5d00 (diff) | |
download | compcert-a5f03d96eee482cd84861fc8cefff9eb451c0cad.tar.gz compcert-a5f03d96eee482cd84861fc8cefff9eb451c0cad.zip |
Cleaned up configure script.
Distribution of CIL as an expanded source tree with changes applied
(instead of original .tar.gz + patches to be applied at config time).
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1020 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cil/test/small1/func.c')
-rw-r--r-- | cil/test/small1/func.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cil/test/small1/func.c b/cil/test/small1/func.c new file mode 100644 index 00000000..a0f4e4e5 --- /dev/null +++ b/cil/test/small1/func.c @@ -0,0 +1,24 @@ +int (*pfun1)(int (*)(int), int); +int (*pfun2)(int (*)(int), int); + +typedef int (*intfun)(int); +intfun arrfun[5]; + +int testf(int k) { + return k; +} + +int foo(int (*bar)(int), int n) { + + pfun1 = foo; + pfun1 = & foo; + pfun1 = * * * pfun2; + + pfun1 = arrfun[4]; + + pfun2(* * testf, 5); + + return 1; +} + + |