From 9d1bcb4667cf94ae02b3b3015694a55175be9c9f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 5 May 1998 16:31:25 -0600 Subject: [PATCH] New test from Joern. From-SVN: r19552 --- .../gcc.c-torture/execute/980505-2.c | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/980505-2.c 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); +}