summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/tests/tests2/91_ptr_longlong_arith32.c
blob: bf07915ab9998d5272a6cb4523e00f5368d70eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
int printf(const char *, ...);
char t[] = "012345678";

int main(void)
{
    char *data = t;
    unsigned long long r = 4;
    unsigned a = 5;
    unsigned long long b = 12;

    *(unsigned*)(data + r) += a - b;

    printf("data = \"%s\"\n", data);
    return 0;
}