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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [test_common_binding_labels_2_main.f03] - Blame information for rev 720

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! This file depends on the module test_common_binding_labels_2.  That module
3
! must be compiled first and not be removed until after this test.
4
module test_common_binding_labels_2_main
5
  use, intrinsic :: iso_c_binding, only: c_double, c_int
6
  implicit none
7
 
8
  common /mycom/ r, s ! { dg-error "does not match" }
9
  real(c_double) :: r
10
  real(c_double) :: s
11
  ! this next line is an error; if a common block is bind(c), the binding label
12
  ! for it must match across all scoping units that declare it.
13
  bind(c, name="my_common_block_2") :: /mycom/
14
 
15
  common /com2/ i ! { dg-error "does not match" }
16
  integer(c_int) :: i
17
  bind(c, name="mycom2") /com2/
18
end module test_common_binding_labels_2_main
19
 
20
program main
21
  use test_common_binding_labels_2 ! { dg-error "does not match" }
22
  use test_common_binding_labels_2_main
23
end program main
24
 
25
! { dg-final { cleanup-modules "test_common_binding_labels_2_main test_common_binding_labels_2" } }

powered by: WebSVN 2.1.0

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