summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.c-torture/execute/980505-2.c
blob: d0d8aa8c6c0a334747c584c2b1ef3f89eb17a825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
typedef unsigned short Uint16;
typedef unsigned int Uint;

Uint f ()
{
        Uint16 token;
        Uint count;
        static Uint16 values[1] = {0x9300};

        token = values[0];
        count = token >> 8;

        return count;
}

int
main ()
{
  if (f () != 0x93)
    abort ();
  exit (0);
}
OpenPOWER on IntegriCloud