xref: /llvm-project/lldb/test/API/lang/cpp/signed_types/main.cpp (revision fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc)
1 #include <stdio.h>
2 
main(int argc,char const * argv[])3 int main (int argc, char const *argv[])
4 {
5     char the_char = 'c';
6     short the_short = 'c';
7     wchar_t the_wchar_t = 'c';
8     int the_int = 'c';
9     long the_long = 'c';
10     long long the_long_long = 'c';
11 
12     signed char the_signed_char = 'c';
13     signed short the_signed_short = 'c';
14     signed int the_signed_int = 'c';
15     signed long the_signed_long = 'c';
16     signed long long the_signed_long_long = 'c';
17     puts("");    // Set break point at this line.
18     return  the_char        - the_signed_char +
19             the_short       - the_signed_short +
20             the_int         - the_signed_int +
21             the_long        - the_signed_long +
22             the_long_long   - the_signed_long_long; //// break $source:$line; c
23     //// var the_int
24     //// val -set 22 1
25 }
26