aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/shloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/shloop.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/shloop.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/shloop.c b/gcc/testsuite/gcc.c-torture/compile/shloop.c
new file mode 100644
index 0000000..f4c9366
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/shloop.c
@@ -0,0 +1,7 @@
+main ()
+{
+ int volatile p;
+ int i;
+ for (i = 10000000; i > 0; i--)
+ p = i >> 10;
+}