aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/test_char_sign.cc
blob: 2439841b3384dc0eee869280727e2c297e80e1f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <cstdio>
int
main()
{
    char ch = '\xf7';
    if (ch < 0) {
        printf("char is signed\n");
    } else {
        printf("char is unsigned\n");
    }
    return 0;
}