2 ! { dg
-options
"-std=legacy" }
4 ! Testing g77 intrinsics as subroutines
13 call hostnm
(c
, status
= i8
)
15 call hostnm
(c
, status
= i4
)
17 call hostnm
(c
, status
= i
)
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
)
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')
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')
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')
74 ! This should be the last test
, unless you want garbage everywhere in
76 call chdir
('..', status
= i8
)
78 call chdir
('..', status
= i4
)
80 call chdir
('..', status
= i
)