repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
byte_1.f90
blob
6cac4216f85d7c555a7552666f7adbefdbeacd72
1
! { dg-do compile }
2
! { dg-options "-fall-intrinsics -std=f95" }
3
program
testbyte
4
integer
(
1
) ::
ii
=
7
5
call
foo
(
ii
)
6
end program
testbyte
7
8
subroutine
foo
(
ii
)
9
integer
(
1
)
ii
10
byte
b
! { dg-error "BYTE type" }
11
b
=
ii
12
call
bar
(
ii
,
b
)
13
end subroutine
foo
14
15
subroutine
bar
(
ii
,
b
)
16
integer
(
1
)
ii
17
byte
b
! { dg-error "BYTE type" }
18
if
(
b
.
ne
.
ii
)
then
19
! print *,"Failed"
20
call
abort
21
end if
22
end subroutine
bar