aboutsummaryrefslogtreecommitdiffstats
path: root/cil/test/small1/func.c
diff options
context:
space:
mode:
Diffstat (limited to 'cil/test/small1/func.c')
-rw-r--r--cil/test/small1/func.c24
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;
+}
+
+