aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/loop-4.c
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-04-07 17:30:05 -0600
committerJeff Law <law@gcc.gnu.org>1998-04-07 17:30:05 -0600
commit8a63cdfc100ba67b19a2fdd2b72185adcbc4c05f (patch)
tree8002984fd2e9b53ff7feab21eb772d7df4b8163b /gcc/testsuite/gcc.c-torture/execute/loop-4.c
parentcc46ae8e686c69739474e868114ea5d5337a2271 (diff)
downloadgcc-8a63cdfc100ba67b19a2fdd2b72185adcbc4c05f.zip
gcc-8a63cdfc100ba67b19a2fdd2b72185adcbc4c05f.tar.gz
gcc-8a63cdfc100ba67b19a2fdd2b72185adcbc4c05f.tar.bz2
New test from Joern.
From-SVN: r19037
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/loop-4.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/loop-4.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-4.c b/gcc/testsuite/gcc.c-torture/execute/loop-4.c
new file mode 100644
index 0000000..0b06ff9
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/loop-4.c
@@ -0,0 +1,16 @@
+int
+f()
+{
+ int j = 1;
+ long i;
+ for (i = -0x70000000L; i < 0x60000000L; i += 0x10000000L) j <<= 1;
+ return j;
+}
+
+int
+main ()
+{
+ if (f () != 8192)
+ abort ();
+ return 0;
+}