summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/lang/cpp/signed_types/main.cpp
blob: dbf3606aeba8a2284ac3fe3981a8186173710046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <stdio.h>

int main (int argc, char const *argv[])
{
    char the_char = 'c';
    short the_short = 'c';
    wchar_t the_wchar_t = 'c';
    int the_int = 'c';
    long the_long = 'c';
    long long the_long_long = 'c';

    signed char the_signed_char = 'c';
    signed short the_signed_short = 'c';
    signed int the_signed_int = 'c';
    signed long the_signed_long = 'c';
    signed long long the_signed_long_long = 'c';
    puts("");    // Set break point at this line.
    return  the_char        - the_signed_char +
            the_short       - the_signed_short +
            the_int         - the_signed_int +
            the_long        - the_signed_long +
            the_long_long   - the_signed_long_long; //// break $source:$line; c
    //// var the_int
    //// val -set 22 1
}