summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/990617-1.c
blob: e9d3cf336fcf97fd55aabb610e1877db1dda6411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 0x70000000 is too large a constant to become a pointer on
   xstormy16. */
/* { dg-do assemble } */
/* { dg-xfail-if "" { xstormy16-*-* } { "*" } { "" } } */

int main()
{
    do {
        long l;
        long *p = &l;
        
        *p = 0x0000000070000000L;
        p += 2;
        {
            unsigned int *addr = (unsigned int *)0x70000000;
            printf("%d, %d\n", addr[1], addr[0]);
        }
        
    } while (1);
}