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_9.f90] - Blame information for rev 831

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! { dg-options "-fshort-enums" }
3
! Program to test enumerations when option -fshort-enums is given
4
 
5
program main
6
  implicit none
7
  enum, bind (c)
8
    enumerator :: red, black = 127
9
    enumerator blue
10
  end enum
11
  if (red /= 0) call abort
12
  if (black /= 127) call abort
13
  if (blue /= 128) call abort
14
end program main

powered by: WebSVN 2.1.0

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