aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/107 spaces backslash/comparer-end.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/107 spaces backslash/comparer-end.c')
-rw-r--r--meson/test cases/common/107 spaces backslash/comparer-end.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/common/107 spaces backslash/comparer-end.c b/meson/test cases/common/107 spaces backslash/comparer-end.c
new file mode 100644
index 000000000..8cff1b1b1
--- /dev/null
+++ b/meson/test cases/common/107 spaces backslash/comparer-end.c
@@ -0,0 +1,16 @@
+#include "comparer.h"
+
+#ifndef COMPARER_INCLUDED
+#error "comparer.h not included"
+#endif
+
+#define COMPARE_WITH "foo\\bar\\" /* This is `foo\bar\` */
+
+int main(void) {
+ if (strcmp (DEF_WITH_BACKSLASH, COMPARE_WITH)) {
+ printf ("Arg string is quoted incorrectly: %s vs %s\n",
+ DEF_WITH_BACKSLASH, COMPARE_WITH);
+ return 1;
+ }
+ return 0;
+}