aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-06 03:14:20 +0800
committerTeddy <[email protected]>2014-04-06 03:14:20 +0800
commit228e587d52381b1c7f081f06e57873c92fe2964a (patch)
tree9d86808642fc8de1b6b46d9472822142469c03e3 /testcases
parente1fd11de0bad5fa1a852b8fa497b572555448c5a (diff)
...
Diffstat (limited to 'testcases')
-rw-r--r--testcases/pass.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/testcases/pass.c b/testcases/pass.c
index 835483e..ebcae0a 100644
--- a/testcases/pass.c
+++ b/testcases/pass.c
@@ -72,7 +72,14 @@ void comma() {
}
int complex_pointer() {
- int (*f(int ***e[10]))();
+ int (*g(int ***e[10]))();
+}
+
+int fp(int a, int b, int c) {
+ int (*f)(int a, int b, int c);
+ f = ****fp + 1;
+ (****f)(1, 2, 3);
+ f = &fp + 1;
}
struct Node n;