From: Jeff Law Date: Tue, 5 May 1998 22:31:25 +0000 (-0600) Subject: New test from Joern. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d1bcb4667cf94ae02b3b3015694a55175be9c9f;p=gcc.git New test from Joern. From-SVN: r19552 --- diff --git a/gcc/testsuite/gcc.c-torture/execute/980505-2.c b/gcc/testsuite/gcc.c-torture/execute/980505-2.c new file mode 100644 index 00000000000..d0d8aa8c6c0 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/980505-2.c @@ -0,0 +1,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); +}