diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-29 14:56:48 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-29 14:56:48 +0000 |
commit | e80bea03430eb4c626e7ca513a36489cee360d2e (patch) | |
tree | d4243f7dae02c16b6e49115e05a28093ba7e8ad0 /gcc/testsuite/gfortran.dg/mvbits_3.f90 | |
parent | 293069049c73d87dfe96710561ef7cd26375b00d (diff) | |
download | gcc-e80bea03430eb4c626e7ca513a36489cee360d2e.tar.gz |
2007-11-29 Tobias Burnus <burnus@net-b.de>
PR fortran/34262
* intrinsic.c (gfc_get_intrinsic_sub_symbol): Add comment.
(gfc_intrinsic_sub_interface): Copy elemental state if needed.
* iresolve.c (gfc_resolve_mvbits): Mark procedure as elemental.
2007-11-29 Tobias Burnus <burnus@net-b.de>
PR fortran/34262
* gfortran.dg/mvbits_3.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130513 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/mvbits_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/mvbits_3.f90 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/mvbits_3.f90 b/gcc/testsuite/gfortran.dg/mvbits_3.f90 new file mode 100644 index 00000000000..74f24e001ee --- /dev/null +++ b/gcc/testsuite/gfortran.dg/mvbits_3.f90 @@ -0,0 +1,31 @@ +! { dg-do run } +! +! PR fortran/ +! +! The trans-*.c part of the compiler did no know +! that mvbits is an elemental function. +! +! Test case contributed by P.H. Lundow. +! +program main + implicit none + integer :: a( 2 ), b( 2 ) + integer :: x, y + + a = 1 + b = 0 + x = 1 + y = 0 + + call mvbits (a, 0, 1, b, 1) + call mvbits (x, 0, 1, y, 1) + +! write (*, *) 'a: ', a +! write (*, *) 'x: ', x +! write (*, *) +! write (*, *) 'b: ', b +! write (*, *) 'y: ', y +! write (*, *) + + if ( any (b /= y) ) call abort() +end program main |