|
6 | 6 | // RUN: -enable-builtin-module \
|
7 | 7 | // RUN: -debug-diagnostic-names
|
8 | 8 |
|
9 |
| -// XFAIL: * |
10 |
| - |
11 | 9 | //==============================================================================
|
12 | 10 | //===========================DEPENDENCY-FREE TESTS=(BEGIN)===================={{
|
13 | 11 | //==============================================================================
|
@@ -145,7 +143,7 @@ func passInt(_ i: Int) { take3(i) }
|
145 | 143 |
|
146 | 144 | func passTupleIntInt(_ t: (Int, Int)) { take3(t) }
|
147 | 145 |
|
148 |
| -func passFWI<T : FixedWidthInteger>(_ t: T) { take3(t) } |
| 146 | + |
149 | 147 |
|
150 | 148 | func passFloat(_ f: Float) { take3(f) }
|
151 | 149 |
|
@@ -190,9 +188,11 @@ struct S_Explicit_With_2_BitwiseCopyable_Generic_Optional<T : _BitwiseCopyable>
|
190 | 188 | var o2: T?
|
191 | 189 | }
|
192 | 190 |
|
193 |
| -struct S_Explicit_Nonescapable : ~Escapable, _BitwiseCopyable {} // expected-error{{non_bitwise_copyable_type_nonescapable}} |
| 191 | +// TODO: When the standard library is built with NonescapableTypes, this should |
| 192 | +// be uncommented. |
| 193 | +//struct S_Explicit_Nonescapable : ~Escapable, _BitwiseCopyable {} |
194 | 194 |
|
195 |
| -struct S_Explicit_Noncopyable : ~Copyable, _BitwiseCopyable {} // expected-error{{non_bitwise_copyable_type_noncopyable}} |
| 195 | +struct S_Explicit_Noncopyable : ~Copyable, _BitwiseCopyable {} // expected-error{{type_does_not_conform}} |
196 | 196 |
|
197 | 197 | struct S_Implicit_Nonescapable : ~Escapable {}
|
198 | 198 |
|
@@ -256,7 +256,7 @@ func passUnsafeContinuation<T : _BitwiseCopyable, U : Error & _BitwiseCopyable>(
|
256 | 256 | take4(c)
|
257 | 257 | }
|
258 | 258 |
|
259 |
| -extension UnsafeContinuation : @retroactive _BitwiseCopyable {} |
| 259 | +extension UnsafeContinuation : @retroactive _BitwiseCopyable {} // expected-error{{conformance to 'BitwiseCopyable' must occur in the same module as generic struct 'UnsafeContinuation'}} |
260 | 260 |
|
261 | 261 | //==============================================================================
|
262 | 262 | //========================_CONCURRENCY-DEPENDENCY TESTS=(END)=================}}
|
|
0 commit comments