* config/i386/i386.md (paritydi2, paritysi2): New expanders.
[official-gcc.git] / gcc / testsuite / gfortran.dg / elemental_result_1.f90
blobc94e08e073f44a7c539d123ef93d9582a169a5ed
1 ! { dg-do compile }
2 ! Tests the fix for PR20874 in which array valued elemental
3 ! functions were permitted.
5 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
7 MODULE Test
8 CONTAINS
9 ELEMENTAL FUNCTION LL(I) ! { dg-error "must have a scalar result" }
10 INTEGER, INTENT(IN) :: I
11 INTEGER :: LL(2)
12 END FUNCTION LL
14 ! This was already OK.
16 ELEMENTAL FUNCTION MM(I)
17 INTEGER, INTENT(IN) :: I
18 INTEGER, pointer :: MM ! { dg-error "conflicts with ELEMENTAL" }
19 END FUNCTION MM
20 END MODULE Test