Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20020312-1.c
blobbac5c6a53c137020db9eaf5b69bc54096767e76f
1 /* { dg-do assemble } */
2 /* { dg-skip-if "" { pdp11-*-* } { "-O0" } { "" } } */
4 /* PR optimization/5892 */
5 typedef struct { unsigned long a; unsigned int b, c; } A;
6 typedef struct { unsigned long a; A *b; int c; } B;
8 static inline unsigned int
9 bar (unsigned int x)
11 unsigned long r;
12 asm ("" : "=r" (r) : "0" (x));
13 return r >> 31;
16 int foo (B *x)
18 A *y;
19 y = x->b;
20 y->b = bar (x->c);
21 y->c = ({ unsigned int z = 1; (z << 24) | (z >> 24); });