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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [enum_9.f90] - Blame information for rev 378

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

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

powered by: WebSVN 2.1.0

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