Sign in
qemu
/
meson
/
refs/heads/simplestart
/
.
/
test cases
/
common
/
142 special characters
/
arg-char-test.c
blob: 04e02f8e86759b18ba38c2e5c33ac72817237488 [
file
] [
log
] [
blame
]
#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
]);
}