aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/141 special characters/arg-char-test.c
blob: 04e02f8e86759b18ba38c2e5c33ac72817237488 (plain)
1
2
3
4
5
6
7
8
9
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]);
}