test cases/common/107 spaces backslash/comparer-end.c
raw| 1 | #include "comparer.h" |
| 2 | |
| 3 | #ifndef COMPARER_INCLUDED |
| 4 | #error "comparer.h not included" |
| 5 | #endif |
| 6 | |
| 7 | #define COMPARE_WITH "foo\\bar\\" /* This is `foo\bar\` */ |
| 8 | |
| 9 | int main(void) { |
| 10 | if (strcmp (DEF_WITH_BACKSLASH, COMPARE_WITH)) { |
| 11 | printf ("Arg string is quoted incorrectly: %s vs %s\n", |
| 12 | DEF_WITH_BACKSLASH, COMPARE_WITH); |
| 13 | return 1; |
| 14 | } |
| 15 | return 0; |
| 16 | } |