2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-08 13:20:53 +00:00
qpdf/qpdf/test_char_sign.cc
Jay Berkenbilt 77111086eb Add code to CI to verify signed/unsigned char
Make sure that our attempt to test both signed and unsigned char is
actually right.
2022-09-23 17:44:16 -04:00

12 lines
180 B
C++

#include <cstdio>
int main()
{
char ch = '\xf7';
if (ch < 0) {
printf("char is signed\n");
} else {
printf("char is unsigned\n");
}
return 0;
}