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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [enum_4.f90] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Program to test ENUM parsing errors
3
 
4
program main
5
  implicit none
6
  enum, bind (c)
7
    enumerator :: red, black = 2
8
    enumerator :: blue = 1, red  ! { dg-error "already has basic type" }
9
  end enum
10
 
11
  enum, bind (c)
12
    enumerator :: r, b(10) = 2  ! { dg-error "Syntax error" }
13
    enumerator , save :: g = 1  ! { dg-error "Syntax error" }
14
  end  ! { dg-error " END ENUM" }
15
 
16
end program main  ! { dg-excess-errors "" }

powered by: WebSVN 2.1.0

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