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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [enum_6.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Program to test ENUM parsing errors
3
 
4
program main
5
  implicit none
6
  integer :: i = 1
7
 
8
  enum, bind (c)
9
    enumerator :: sun, mon = 2
10
    i = 2  ! { dg-error "Unexpected" }
11
    enumerator :: wed = 1
12
  end enum
13
 
14
  i = 1
15
 
16
  enum, bind (c)  ! { dg-error "Unexpected" }
17
    enumerator :: red, black = 2  ! { dg-error "ENUM definition statement expected" }
18
    enumerator :: blue = 1  ! { dg-error "ENUM definition statement expected" }
19
  end enum  ! { dg-error "Expecting END PROGRAM" }
20
 
21
end program main

powered by: WebSVN 2.1.0

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