OSDN Git Service

2010-12-02 Thomas Koenig <tkoenig@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / dependency_38.f90
1 ! { dg-do compile }
2 ! { dg-options "-Warray-temporaries" }
3 ! PR 45159 - No temporary should be created for this.
4 program main
5   integer a(100)
6   a(10:16:2) = a(10:16:2)
7   a(10:16:2) = a(10:19:3)
8   a(10:18:2) = a(12:20:2)
9   a(1:10) = a(2:20:2)
10   a(16:10:-2) = a(16:10:-2)
11   a(19:10:-1) = a(19:1:-2)
12   a(19:10:-1) = a(18:9:-1)
13   a(19:11:-1) = a(18:2:-2)
14 end program main