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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Verify that an error is correctly reported if multiple identifiers are given
3
! with a bind(c) statement that has a NAME= specifier.
4
module m
5
  use iso_c_binding
6
  implicit none
7
  integer(c_int), bind(C, name="") :: a,b ! { dg-error "Multiple identifiers" }
8
  integer(c_int), bind(C, name="bob") :: c,d ! { dg-error "Multiple identifiers" }
9
  integer(c_int) :: e,f
10
  bind(c, name="foo") :: e,f ! { dg-error "Multiple identifiers" }
11
end module m
12
 

powered by: WebSVN 2.1.0

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