File: cuf16.cuf

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,696 kB
  • sloc: cpp: 7,438,781; ansic: 1,393,871; asm: 1,012,926; python: 241,771; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 8,596; ml: 5,082; perl: 4,730; makefile: 3,591; awk: 3,523; javascript: 2,251; xml: 892; fortran: 672
file content (95 lines) | stat: -rw-r--r-- 3,284 bytes parent folder | download | duplicates (9)
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
! RUN: %python %S/test_errors.py %s %flang_fc1
module m
  interface operator(-)
    !ERROR: OPERATOR(-) function 'f1' conflicts with intrinsic operator
    function f1(x)
      real, intent(in) :: x
    end
    !ERROR: OPERATOR(-) function 'f2' conflicts with intrinsic operator
    attributes(device) function f2(x)
      real, intent(in), device :: x(:)
    end
    function f3(x) ! ok
      real, intent(in), device :: x(:,:)
    end
    !ERROR: OPERATOR(-) function 'f4' conflicts with intrinsic operator
    attributes(device) function f4(x)
      real, intent(in) :: x(:,:,:)
    end
    !ERROR: OPERATOR(-) function 'f5' conflicts with intrinsic operator
    function f5(x)
      real, intent(in), unified :: x(:,:,:,:)
    end
    !ERROR: OPERATOR(-) function 'f6' conflicts with intrinsic operator
    attributes(device) function f6(x)
      real, intent(in), managed :: x(:,:,:,:,:)
    end
  end interface
  interface operator(*)
    !ERROR: OPERATOR(*) function 'f11' conflicts with intrinsic operator
    function f11(x, y)
      real, intent(in) :: x, y
    end
    !ERROR: OPERATOR(*) function 'f12' conflicts with intrinsic operator
    attributes(device) function f12(x, y)
      real, intent(in), device :: x, y(:)
    end
    !ERROR: OPERATOR(*) function 'f13' conflicts with intrinsic operator
    attributes(device) function f13(x, y)
      real, intent(in) :: x(:), y
    end
    function f14a(x, y) ! ok
      real, intent(in), device :: x(:)
      real, intent(in) :: y(:)
    end
    function f14b(x, y) ! ok
      real, intent(in) :: x
      real, intent(in), device :: y(:,:)
    end
    !ERROR: OPERATOR(*) function 'f15' conflicts with intrinsic operator
    function f15(x, y)
      real, intent(in) :: x(:,:)
      real, intent(in), unified :: y
    end
    !ERROR: OPERATOR(*) function 'f16' conflicts with intrinsic operator
    attributes(device) function f16(x, y)
      real, intent(in), device :: x(:,:)
      real, intent(in), managed :: y(:,:)
    end
  end interface
  interface assignment(=)
    !ERROR: Defined assignment subroutine 's1' conflicts with intrinsic assignment
    subroutine s1(x, y)
      real, intent(in out) :: x
      real, intent(in) :: y
    end
    !ERROR: Defined assignment subroutine 's2' conflicts with intrinsic assignment
    attributes(device) subroutine s2(x, y)
      real, intent(in out), device :: x(:)
      real, intent(in), device :: y
    end
    !ERROR: Defined assignment subroutine 's3' conflicts with intrinsic assignment
    attributes(device) subroutine s3(x, y)
      real, intent(in out) :: x(:)
      real, intent(in) :: y(:)
    end
    subroutine s4a(x, y) ! ok
      real, intent(in out), device :: x(:,:)
      real, intent(in) :: y
    end
    subroutine s4b(x, y) ! ok
      real, intent(in out) :: x(:,:)
      real, intent(in), device :: y(:,:)
    end
    !ERROR: Defined assignment subroutine 's5' conflicts with intrinsic assignment
    subroutine s5(x, y)
      real, intent(in out) :: x(:,:,:)
      real, intent(in), unified :: y
    end
    !ERROR: Defined assignment subroutine 's6' conflicts with intrinsic assignment
    attributes(device) subroutine s6(x, y)
      real, intent(in out), device :: x(:,:,:)
      real, intent(in), managed :: y(:,:,:)
    end
  end interface
end