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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.dg/] [enum_7.f90] - Blame information for rev 20

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

Line No. Rev Author Line
1 12 jlechner
! { 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.