summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/widechar_intrinsics_2.f90
blob: 0a1d449b60564caeda90c139775abb59325ea273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
! { dg-do compile }
! { dg-options "-fmax-errors=1000" }

program failme

  integer :: i, j, array(20)
  integer(kind=4) :: i4
  integer(kind=8) :: i8
  character(kind=1,len=20) :: s1, t1
  character(kind=4,len=20) :: s4, t4

  call ctime (i8, s1)
  call ctime (i8, s4) ! { dg-error "must be of kind" }

  call chdir (s1)
  call chdir (s1, i)
  call chdir (s4) ! { dg-error "must be of kind" }
  call chdir (s4, i) ! { dg-error "must be of kind" }

  call chmod (s1, t1)
  call chmod (s1, t4) ! { dg-error "must be of kind" }
  call chmod (s4, t1) ! { dg-error "must be of kind" }
  call chmod (s4, t4) ! { dg-error "must be of kind" }
  call chmod (s1, t1, i)
  call chmod (s1, t4, i) ! { dg-error "must be of kind" }
  call chmod (s4, t1, i) ! { dg-error "must be of kind" }
  call chmod (s4, t4, i) ! { dg-error "must be of kind" }

  call fdate (s1)
  call fdate (s4) ! { dg-error "must be of kind" }

  call gerror (s1)
  call gerror (s4) ! { dg-error "must be of kind" }

  call getcwd (s1)
  call getcwd (s1, i)
  call getcwd (s4) ! { dg-error "must be of kind" }
  call getcwd (s4, i) ! { dg-error "must be of kind" }

  call getenv (s1, t1)
  call getenv (s1, t4) ! { dg-error "Type of argument" }
  call getenv (s4, t1) ! { dg-error "Type of argument" }
  call getenv (s4, t4) ! { dg-error "Type of argument" }

  call getarg (i, s1)
  call getarg (i, s4) ! { dg-error "must be of kind" }

  call getlog (s1)
  call getlog (s4) ! { dg-error "must be of kind" }

  call fgetc (j, s1)
  call fgetc (j, s1, i)
  call fgetc (j, s4) ! { dg-error "must be of kind" }
  call fgetc (j, s4, i) ! { dg-error "must be of kind" }

  call fget (s1)
  call fget (s1, i)
  call fget (s4) ! { dg-error "must be of kind" }
  call fget (s4, i) ! { dg-error "must be of kind" }

  call fputc (j, s1)
  call fputc (j, s1, i)
  call fputc (j, s4) ! { dg-error "must be of kind" }
  call fputc (j, s4, i) ! { dg-error "must be of kind" }

  call fput (s1)
  call fput (s1, i)
  call fput (s4) ! { dg-error "must be of kind" }
  call fput (s4, i) ! { dg-error "must be of kind" }

  call hostnm (s1)
  call hostnm (s1, i)
  call hostnm (s4) ! { dg-error "must be of kind" }
  call hostnm (s4, i) ! { dg-error "must be of kind" }

  call link (s1, t1)
  call link (s1, t4) ! { dg-error "must be of kind" }
  call link (s4, t1) ! { dg-error "must be of kind" }
  call link (s4, t4) ! { dg-error "must be of kind" }
  call link (s1, t1, i)
  call link (s1, t4, i) ! { dg-error "must be of kind" }
  call link (s4, t1, i) ! { dg-error "must be of kind" }
  call link (s4, t4, i) ! { dg-error "must be of kind" }

  call perror (s1)
  call perror (s4) ! { dg-error "must be of kind" }

  call rename (s1, t1)
  call rename (s1, t4) ! { dg-error "must be of kind" }
  call rename (s4, t1) ! { dg-error "must be of kind" }
  call rename (s4, t4) ! { dg-error "must be of kind" }
  call rename (s1, t1, i)
  call rename (s1, t4, i) ! { dg-error "must be of kind" }
  call rename (s4, t1, i) ! { dg-error "must be of kind" }
  call rename (s4, t4, i) ! { dg-error "must be of kind" }

  call lstat (s1, array)
  call lstat (s1, array, i)
  call lstat (s4, array) ! { dg-error "must be of kind" }
  call lstat (s4, array, i) ! { dg-error "must be of kind" }

  call stat (s1, array)
  call stat (s1, array, i)
  call stat (s4, array) ! { dg-error "must be of kind" }
  call stat (s4, array, i) ! { dg-error "must be of kind" }

  call symlnk (s1, t1)
  call symlnk (s1, t4) ! { dg-error "must be of kind" }
  call symlnk (s4, t1) ! { dg-error "must be of kind" }
  call symlnk (s4, t4) ! { dg-error "must be of kind" }
  call symlnk (s1, t1, i)
  call symlnk (s1, t4, i) ! { dg-error "must be of kind" }
  call symlnk (s4, t1, i) ! { dg-error "must be of kind" }
  call symlnk (s4, t4, i) ! { dg-error "must be of kind" }

  call system (s1)
  call system (s1, i)
  call system (s4) ! { dg-error "Type of argument" }
  call system (s4, i) ! { dg-error "Type of argument" }

  call ttynam (i, s1)
  call ttynam (i, s4) ! { dg-error "must be of kind" }

  call unlink (s1)
  call unlink (s1, i)
  call unlink (s4) ! { dg-error "must be of kind" }
  call unlink (s4, i) ! { dg-error "must be of kind" }

end program failme