diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-05 22:31:25 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-05 22:31:25 +0000 |
commit | 870d7a364fabca1efd21f7b8a996934ab7f91805 (patch) | |
tree | 39c1ef685e16033ff17683bae3eb62ffa4b6e6a1 | |
parent | d2d2ba5eb004d9b6afb9c0841a7c4f1273c0639d (diff) | |
download | gcc-870d7a364fabca1efd21f7b8a996934ab7f91805.tar.gz |
New test from Joern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19552 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/980505-2.c | 22 |
1 files changed, 22 insertions, 0 deletions
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); +} |