aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/980505-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/execute/980505-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/execute/980505-2.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/980505-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/980505-2.c
new file mode 100644
index 000000000..d0d8aa8c6
--- /dev/null
+++ b/gcc-4.9/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);
+}