checkmk/test/main_pre_multiple/in
raw| 1 | /* A complete test example */ |
| 2 | |
| 3 | #include <stdio.h> |
| 4 | |
| 5 | # suite The Suite |
| 6 | |
| 7 | # tcase The Test Case |
| 8 | |
| 9 | # test the_test |
| 10 | int nc; |
| 11 | const char msg[] = "\n\n Hello, world!\n"; |
| 12 | |
| 13 | nc = printf("%s", msg); |
| 14 | fail_unless(nc == (sizeof msg |
| 15 | - 1) /* for terminating NUL. */ |
| 16 | ); |
| 17 | |
| 18 | # main-pre |
| 19 | int declare_me = 0; |
| 20 | |
| 21 | # main-pre |
| 22 | int oh_wait_declare_me_too; |