Commit | Line | Data |
---|---|---|
451875b4 L |
1 | #include <stdio.h> |
2 | #include <stdlib.h> | |
3 | ||
4 | void | |
5 | test (void) | |
6 | { | |
7 | static int count; | |
8 | if (count) | |
9 | printf("PASS\n"); | |
10 | count++; | |
11 | } | |
12 | ||
13 | void | |
14 | foo (void (*bar) (void)) | |
15 | { | |
16 | if (bar != test) | |
17 | abort (); | |
18 | bar (); | |
19 | test (); | |
20 | } |