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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [enum_8.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! Program to test the initialisation range of enumerators
3
! and kind values check
4
 
5
program main
6
  implicit none
7
  enum, bind (c)
8
    enumerator :: pp, qq = 4294967295, rr ! { dg-error "too big for its kind" }
9
  end enum  ! { dg-error "has no ENUMERATORS" }
10
 
11
  enum, bind (c)
12
    enumerator :: p , q = 4294967299_8, r  ! { dg-error "Arithmetic overflow" }
13
  end enum  ! { dg-error "has no ENUMERATORS" }
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.