From: Jeff Law Date: Tue, 5 May 1998 22:31:25 +0000 (-0600) Subject: New test from Joern. X-Git-Tag: prereleases/egcs-1.1-prerelease~1459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d1bcb4667cf94ae02b3b3015694a55175be9c9f;p=thirdparty%2Fgcc.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 000000000000..d0d8aa8c6c0a --- /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); +}