- improved test
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 11:38:27 +0000 (11:38 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 11:38:27 +0000 (11:38 +0000)
[r21581]

parsetest/gnu99/pointerarith.c

index 1b54bd1..c473d5e 100644 (file)
@@ -1,3 +1,13 @@
+typedef int (*func)(void);
+
+void *add(void *p) {
+       return p + 1;
+}
+
+func next(func f) {
+       return f + 1;
+}
+
 int main(void) {
        void *a = 0;
        a += 5;