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

Subversion Repositories openrisc

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

Go to most recent revision | 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
 
7
  enum, bind (c)
8
    enumerator :: sun, mon = 2
9
    enum, bind (c)  ! { dg-error "Unexpected" }
10
      enumerator :: apple, mango
11
    end enum
12
    enumerator :: wed = 1  ! { dg-error "ENUM definition statement expected" }
13
  end enum  ! { dg-error "Expecting END PROGRAM" }
14
 
15
end program main

powered by: WebSVN 2.1.0

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