OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [compliant_elemental_intrinsics_1.f90] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR26976, in which non-compliant elemental
3
! intrinsic function results were not detected.  At the same
4
! time, the means to tests the compliance of TRANSFER with the
5
! optional SIZE parameter was added.
6
!
7
! Contributed by Dominique Dhumieres  
8
!
9
real(4) :: pi, a(2), b(3)
10
character(26) :: ch
11
 
12
pi = acos(-1.0)
13
b = pi
14
 
15
a = cos(b) ! { dg-error "different shape for Array assignment" }
16
 
17
a = -pi
18
b = cos(a) ! { dg-error "different shape for Array assignment" }
19
 
20
ch = "abcdefghijklmnopqrstuvwxyz"
21
a = transfer (ch, pi, 3) ! { dg-error "different shape for Array assignment" }
22
 
23
! This already generated an error
24
b = reshape ((/1.0/),(/1/)) ! { dg-error "different shape for Array assignment" }
25
 
26
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.