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_2.f03] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
module binding_label_tests_2
3
 
4
contains
5
  ! this is just here so at least one of the subroutines will be accepted so
6
  ! gfortran doesn't give an Extension warning when using -pedantic-errors
7
  subroutine ok()
8
  end subroutine ok
9
 
10
  subroutine sub0() bind(c, name="   1") ! { dg-error "Invalid C name" }
11
  end subroutine sub0 ! { dg-error "Expecting END MODULE" }
12
 
13
  subroutine sub1() bind(c, name="$") ! { dg-error "Invalid C name" }
14
  end subroutine sub1 ! { dg-error "Expecting END MODULE" }
15
 
16
  subroutine sub2() bind(c, name="abc$") ! { dg-error "Invalid C name" }
17
  end subroutine sub2 ! { dg-error "Expecting END MODULE" }
18
 
19
  subroutine sub3() bind(c, name="abc d") ! { dg-error "Embedded space" }
20
  end subroutine sub3 ! { dg-error "Expecting END MODULE" }
21
 
22
  subroutine sub5() BIND(C, name=" myvar 2 ") ! { dg-error "Embedded space" }
23
  end subroutine sub5 ! { dg-error "Expecting END MODULE" }
24
 
25
  subroutine sub6() bind(c, name="         ) ! { dg-error "Invalid C name" }
26
  end subroutine sub6 ! { dg-error "Expecting END MODULE" }
27
 
28
  subroutine sub7() bind(c, name=) ! { dg-error "Syntax error" }
29
  end subroutine sub7 ! { dg-error "Expecting END MODULE" }
30
 
31
  subroutine sub8() bind(c, name) ! { dg-error "Syntax error" }
32
  end subroutine sub8 ! { dg-error "Expecting END MODULE" }
33
end module binding_label_tests_2
34
 
35
! { dg-final { cleanup-modules "binding_label_tests_2" } }

powered by: WebSVN 2.1.0

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