File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,10 @@ func sr11027(_ f: @convention(block) @autoclosure () -> Int) -> Void {} // expec
13
13
sr11027 ( 1 )
14
14
15
15
func sr11027_c( _ f: @convention ( c) @autoclosure ( ) -> Int ) -> Void { } // expected-error{{@convention(c) attribute is not allowed on @autoclosure type}}
16
- sr11027_c ( 1 )
16
+ sr11027_c ( 1 )
17
+
18
+ func sr11027_swift( _ f: @convention ( swift) @autoclosure ( ) -> Int ) -> Void { } // OK
19
+ sr11027_swift ( 1 )
20
+
21
+ func sr11027_thin( _ f: @convention ( thin) @autoclosure ( ) -> Int ) -> Void { } // OK
22
+ sr11027_thin ( 1 )
Original file line number Diff line number Diff line change @@ -11,4 +11,10 @@ func sr11027(_ f: @convention(block) @autoclosure () -> Int) -> Void {}
11
11
sr11027 ( 1 )
12
12
13
13
func sr11027_c( _ f: @convention ( c) @autoclosure ( ) -> Int ) -> Void { }
14
- sr11027_c ( 1 )
14
+ sr11027_c ( 1 )
15
+
16
+ func sr11027_swift( _ f: @convention ( swift) @autoclosure ( ) -> Int ) -> Void { } // OK
17
+ sr11027_swift ( 1 )
18
+
19
+ func sr11027_thin( _ f: @convention ( thin) @autoclosure ( ) -> Int ) -> Void { } // OK
20
+ sr11027_thin ( 1 )
You can’t perform that action at this time.
0 commit comments