aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/141 special characters/arg-char-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/141 special characters/arg-char-test.c')
-rw-r--r--meson/test cases/common/141 special characters/arg-char-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/common/141 special characters/arg-char-test.c b/meson/test cases/common/141 special characters/arg-char-test.c
new file mode 100644
index 000000000..04e02f8e8
--- /dev/null
+++ b/meson/test cases/common/141 special characters/arg-char-test.c
@@ -0,0 +1,10 @@
+#include <assert.h>
+#include <stdio.h>
+
+int main(int argc, char **argv) {
+ char c = CHAR;
+ assert(argc == 2);
+ if (c != argv[1][0])
+ fprintf(stderr, "Expected %x, got %x\n", (unsigned int) c, (unsigned int) argv[1][0]);
+ assert(c == argv[1][0]);
+}