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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [g77_intrinsics_sub.f] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=legacy" }
3
!
4
! Testing g77 intrinsics as subroutines
5
      integer(kind=8) i8, j8
6
      integer i4, j4
7
      integer i, j
8
      character*80 c
9
 
10
      call gerror (c)
11
      call getlog (c)
12
 
13
      call hostnm (c, status = i8)
14
      call hostnm (c, i8)
15
      call hostnm (c, status = i4)
16
      call hostnm (c, i4)
17
      call hostnm (c, status = i)
18
      call hostnm (c, i)
19
      call hostnm (c)
20
 
21
      call kill (i8, i8, status = i8)
22
      call kill (i8, i8, i8)
23
      call kill (i4, i8, i8)
24
      call kill (i8, i4, i8)
25
      call kill (i8, i8, i4)
26
      call kill (i4, i4, i8)
27
      call kill (i4, i8, i4)
28
      call kill (i8, i4, i4)
29
      call kill (i4, i4, i4)
30
      call kill (i, i, i)
31
      call kill (i8, i8)
32
      call kill (i4, i8)
33
      call kill (i8, i4)
34
      call kill (i4, i4)
35
      call kill (i, i)
36
 
37
      call link ('foo', 'bar', status = i8)
38
      call link ('foo', 'bar', status = i4)
39
      call link ('foo', 'bar', status = i)
40
      call link ('foo', 'bar', i8)
41
      call link ('foo', 'bar', i4)
42
      call link ('foo', 'bar', i)
43
      call link ('foo', 'bar')
44
 
45
      call perror (c)
46
 
47
      call rename ('foo', 'bar', status = i8)
48
      call rename ('foo', 'bar', status = i4)
49
      call rename ('foo', 'bar', status = i)
50
      call rename ('foo', 'bar', i8)
51
      call rename ('foo', 'bar', i4)
52
      call rename ('foo', 'bar', i)
53
      call rename ('foo', 'bar')
54
 
55
      i = 1
56
      i4 = 1
57
      i8 = 1
58
      call sleep (i)
59
      call sleep (i4)
60
      call sleep (i8)
61
      call sleep (-1)
62
 
63
      call symlnk ('foo', 'bar', status = i8)
64
      call symlnk ('foo', 'bar', status = i4)
65
      call symlnk ('foo', 'bar', status = i)
66
      call symlnk ('foo', 'bar', i8)
67
      call symlnk ('foo', 'bar', i4)
68
      call symlnk ('foo', 'bar', i)
69
      call symlnk ('foo', 'bar')
70
 
71
! Cleaning our mess
72
      call unlink ('bar')
73
 
74
! This should be the last test, unless you want garbage everywhere in
75
! your filesystem.
76
      call chdir ('..', status = i8)
77
      call chdir ('..', i8)
78
      call chdir ('..', status = i4)
79
      call chdir ('..', i4)
80
      call chdir ('..', status = i)
81
      call chdir ('..', i)
82
      call chdir ('..')
83
 
84
      end

powered by: WebSVN 2.1.0

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