File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
test/Interop/Cxx/class/method Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ struct HasMethods {
25
25
26
26
NonTrivialInWrapper nonConstPassThroughAsWrapper (int a ) { return {a }; }
27
27
NonTrivialInWrapper constPassThroughAsWrapper (int a ) const { return {a }; }
28
+
29
+ int increment (int a ) { return a + 1 ; }
30
+ int increment (int a ) const { return a + 1 ; }
28
31
};
29
32
30
33
#endif // TEST_INTEROP_CXX_CLASS_METHOD_METHODS_H
Original file line number Diff line number Diff line change 17
17
18
18
// CHECK: mutating func nonConstPassThroughAsWrapper(_ a: Int32) -> NonTrivialInWrapper
19
19
// CHECK: func constPassThroughAsWrapper(_ a: Int32) -> NonTrivialInWrapper
20
+
21
+ // CHECK: mutating func incrementMutable(_ a: Int32) -> Int32
22
+ // CHECK: func incrementMutable(_ a: Int32) -> Int32
23
+
24
+ // CHECK: const func increment(_ a: Int32) -> Int32
25
+ // CHECK: func increment(_ a: Int32) -> Int32
You can’t perform that action at this time.
0 commit comments