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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [boz_10.f90] - Blame information for rev 862

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
!
4
! PR fortran/34342
5
!
6
! Diagnose BOZ literal for non-integer variables in
7
! a DATA statement. And outside DATA statements.
8
!
9
real :: r
10
integer :: i
11
r = real(z'FFFF') ! { dg-error "outside a DATA statement" }
12
i = int(z'4455')  ! { dg-error "outside a DATA statement" }
13
r = z'FFFF' + 1.0 ! { dg-error "outside a DATA statement" }
14
i = z'4455' + 1   ! { dg-error "outside a DATA statement" }
15
end

powered by: WebSVN 2.1.0

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