| 30 | #define EMPTY |
| 31 | |
| 32 | int main(void) |
| 33 | { |
| 34 | alarm(10); |
| 35 | |
| 36 | plan_tests(4); |
| 37 | |
| 38 | /* An expands-to-nothing argument reads as "absent": NONEMPTY |
| 39 | * reports 0, and iteration stops before it. */ |
| 40 | CHECK1(CPPMAGIC_NONEMPTY(EMPTY), "0"); |
| 41 | CHECK1(CPPMAGIC_MAP(TESTMAP, a, EMPTY, b), "[a]"); |
| 42 | CHECK1(CPPMAGIC_JOIN(;, a, EMPTY, b), "a"); |
| 43 | |
| 44 | /* A textually empty argument has the same behavior. */ |
| 45 | CHECK1(CPPMAGIC_MAP(TESTMAP, a, , b), "[a]"); |
| 46 | |
| 47 | return exit_status(); |
| 48 | } |
nothing calls this directly
no outgoing calls
no test coverage detected