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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [boz_8.f90] - Blame information for rev 848

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f2003" }
3
!
4
! PR fortran/34342
5
!
6
! Diagnose BOZ literal for non-integer variables in
7
! a DATA statement. Cf. Fortran 2003, 5.2.5 DATA statement:
8
! "If a data-stmt-constant is a boz-literal-constant, the
9
!  corresponding variable shall be of type integer."
10
!
11
real :: r
12
integer :: i
13
data i/z'111'/, r/z'4455'/ ! { dg-error "BOZ literal at .1. used to initialize non-integer variable 'r'" }
14
r = z'FFFF' ! { dg-error "outside a DATA statement" }
15
i = z'4455' ! { dg-error "outside a DATA statement" }
16
r = real(z'FFFFFFFFF') ! { dg-error "is too large" }
17
end

powered by: WebSVN 2.1.0

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