| 1 | #include <stdio.h> |
|---|---|
| 2 | |
| 3 | __attribute__((nodebug)) static void add(int i, int j, void handler(int)) { |
| 4 | handler(i + j); |
| 5 | } |
| 6 | |
| 7 | static void handler(int result) { |
| 8 | printf(format: "result %d\n", result); // breakpoint |
| 9 | } |
| 10 | |
| 11 | int main(int argc, char const *argv[]) { |
| 12 | add(i: 2, j: 3, handler); |
| 13 | return 0; |
| 14 | } |
| 15 |
