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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [binding_c_table_15_1.f03] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! Test the named constants in Table 15.1.
3
program a
4
  use, intrinsic :: iso_c_binding
5
  implicit none
6
  if (C_NULL_CHAR       /=  CHAR(0) ) call abort
7
  if (C_ALERT           /= ACHAR(7) ) call abort
8
  if (C_BACKSPACE       /= ACHAR(8) ) call abort
9
  if (C_FORM_FEED       /= ACHAR(12)) call abort
10
  if (C_NEW_LINE        /= ACHAR(10)) call abort
11
  if (C_CARRIAGE_RETURN /= ACHAR(13)) call abort
12
  if (C_HORIZONTAL_TAB  /= ACHAR(9) ) call abort
13
  if (C_VERTICAL_TAB    /= ACHAR(11)) call abort
14
end program a

powered by: WebSVN 2.1.0

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