summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/ishft_2.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/ishft_2.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/ishft_2.f906
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/ishft_2.f90 b/gcc/testsuite/gfortran.dg/ishft_2.f90
new file mode 100644
index 000000000..96acf0e3b
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/ishft_2.f90
@@ -0,0 +1,6 @@
+! { dg-do run }
+program ishft_2
+ if ( ishftc(3, 2, 3) /= 5 ) call abort()
+ if ( ishftc(256+3, 2, 3) /= 256+5 ) call abort()
+ if ( ishftc(1_4, 31)+1 /= -huge(1_4) ) call abort()
+end program