You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check for:
• Matching decl kinds
• Matching PBD shapes (does every VarDecl on both sides have a counterpart?)
• Matching function effects
• Matching function arity (roughly)
Copy file name to clipboardExpand all lines: test/attr/attr_abi.swift
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ func funcForFunc() {}
13
13
@abi(var varForVar_abi: Int)
14
14
varvarForVar:Int=0
15
15
16
-
@abi(func funcForVar_abi())
16
+
@abi(func funcForVar_abi()) // expected-error {{cannot give var 'funcForVar' the ABI of a global function}}
17
17
varfuncForVar:Int=0
18
18
19
-
@abi(var varForFunc_abi: Int)
19
+
@abi(var varForFunc_abi: Int) // expected-error {{cannot give global function 'varForFunc()' the ABI of a pattern binding}}
20
20
func varForFunc(){}
21
21
22
22
//
@@ -26,52 +26,52 @@ func varForFunc() {}
26
26
@abi(func param00_generic00()-> Int)
27
27
func param00_generic00()->Int{fatalError()}
28
28
29
-
@abi(func param10_generic00(_: Int)-> Int)
29
+
@abi(func param10_generic00(_: Int)-> Int) // expected-error {{cannot give global function 'param10_generic00()' the ABI of a global function with a different number of low-level parameters}}
30
30
func param10_generic00()->Int{fatalError()}
31
31
32
-
@abi(func param01_generic00()-> Int)
32
+
@abi(func param01_generic00()-> Int) // expected-error {{cannot give global function 'param01_generic00' the ABI of a global function with a different number of low-level parameters}}
33
33
func param01_generic00(_:Int)->Int{fatalError()}
34
34
35
35
@abi(func param11_generic00(_: Int)-> Int)
36
36
func param11_generic00(_:Int)->Int{fatalError()}
37
37
38
38
39
39
40
-
@abi(func param00_generic10<T>()-> T)
40
+
@abi(func param00_generic10<T>()-> T) // expected-error {{cannot give global function 'param00_generic10()' the ABI of a global function with a different number of low-level parameters}}
41
41
func param00_generic10()->Int{fatalError()}
42
42
43
-
@abi(func param10_generic10<T>(_: Int)-> T)
43
+
@abi(func param10_generic10<T>(_: Int)-> T) // expected-error {{cannot give global function 'param10_generic10()' the ABI of a global function with a different number of low-level parameters}}
44
44
func param10_generic10()->Int{fatalError()}
45
45
46
46
@abi(func param01_generic10<T>()-> T)
47
47
func param01_generic10(_:Int)->Int{fatalError()}
48
48
49
-
@abi(func param11_generic10<T>(_: Int)-> T)
49
+
@abi(func param11_generic10<T>(_: Int)-> T) // expected-error {{cannot give global function 'param11_generic10' the ABI of a global function with a different number of low-level parameters}}
50
50
func param11_generic10(_:Int)->Int{fatalError()}
51
51
52
52
53
53
54
-
@abi(func param00_generic01()-> Int)
54
+
@abi(func param00_generic01()-> Int) // expected-error {{cannot give global function 'param00_generic01()' the ABI of a global function with a different number of low-level parameters}}
55
55
func param00_generic01<T>()->T{fatalError()}
56
56
57
57
@abi(func param10_generic01(_: Int)-> Int)
58
58
func param10_generic01<T>()->T{fatalError()}
59
59
60
-
@abi(func param01_generic01()-> Int)
60
+
@abi(func param01_generic01()-> Int) // expected-error {{cannot give global function 'param01_generic01' the ABI of a global function with a different number of low-level parameters}}
61
61
func param01_generic01<T>(_:Int)->T{fatalError()}
62
62
63
-
@abi(func param11_generic01(_: Int)-> Int)
63
+
@abi(func param11_generic01(_: Int)-> Int) // expected-error {{cannot give global function 'param11_generic01' the ABI of a global function with a different number of low-level parameters}}
64
64
func param11_generic01<T>(_:Int)->T{fatalError()}
65
65
66
66
67
67
68
68
@abi(func param00_generic11<T>()-> T)
69
69
func param00_generic11<T>()->T{fatalError()}
70
70
71
-
@abi(func param10_generic11<T>(_: Int)-> T)
71
+
@abi(func param10_generic11<T>(_: Int)-> T) // expected-error {{cannot give global function 'param10_generic11()' the ABI of a global function with a different number of low-level parameters}}
72
72
func param10_generic11<T>()->T{fatalError()}
73
73
74
-
@abi(func param01_generic11<T>()-> T)
74
+
@abi(func param01_generic11<T>()-> T) // expected-error {{cannot give global function 'param01_generic11' the ABI of a global function with a different number of low-level parameters}}
0 commit comments