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
ieee_9.f90: XFAIL on arm*-*-gnueabi[hf].
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
c_sizeof_6.f90
blob
a676a5b89862a8a6980dfb3715209d54f84a6b48
1
! { dg-do compile }
2
!
3
program
foo
4
5
use
iso_c_binding
,
only
:
c_int
,
c_char
,
c_sizeof
6
7
integer
(
kind
=
c_int
) ::
i
8
9
character
(
kind
=
c_char
,
len
=
1
),
parameter
::
str2
(
4
) = [
"a"
,
"b"
,
"c"
,
"d"
]
10
11
i
=
c_sizeof
(
str2
(
1
:
3
))
! { dg-error "must be an interoperable data" }
12
13
if
(
i
/=
3
)
STOP
1
14
15
end program
foo
16