File: binding_c_table_15_1.f03

package info (click to toggle)
gcc-arm-none-eabi 15%3A14.2.rel1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,099,328 kB
  • sloc: cpp: 3,627,108; ansic: 2,571,498; ada: 834,230; f90: 235,082; makefile: 79,231; asm: 74,984; xml: 51,692; exp: 39,736; sh: 33,298; objc: 15,629; python: 15,069; fortran: 14,429; pascal: 7,003; awk: 5,070; perl: 3,106; ml: 285; lisp: 253; lex: 204; haskell: 135
file content (14 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do run }
! Test the named constants in Table 15.1.
program a
  use, intrinsic :: iso_c_binding
  implicit none
  if (C_NULL_CHAR       /=  CHAR(0) ) STOP 1
  if (C_ALERT           /= ACHAR(7) ) STOP 2
  if (C_BACKSPACE       /= ACHAR(8) ) STOP 3
  if (C_FORM_FEED       /= ACHAR(12)) STOP 4
  if (C_NEW_LINE        /= ACHAR(10)) STOP 5
  if (C_CARRIAGE_RETURN /= ACHAR(13)) STOP 6
  if (C_HORIZONTAL_TAB  /= ACHAR(9) ) STOP 7
  if (C_VERTICAL_TAB    /= ACHAR(11)) STOP 8
end program a