File tree Expand file tree Collapse file tree 5 files changed +5
-117
lines changed
stdlib/private/StdlibUnittest
validation-test/StdlibUnittest Expand file tree Collapse file tree 5 files changed +5
-117
lines changed Original file line number Diff line number Diff line change @@ -1058,15 +1058,6 @@ static void VisitNodeConstructor(
1058
1058
case TypeKind::Function: {
1059
1059
const AnyFunctionType *identifier_func =
1060
1060
identifier_type->getAs <AnyFunctionType>();
1061
-
1062
- // inits are typed as (Foo.Type) -> (args...) -> Foo, but don't
1063
- // assert that in case we're dealing with broken code.
1064
- if (identifier_func->getInput ()->is <AnyMetatypeType>() &&
1065
- identifier_func->getResult ()->is <AnyFunctionType>()) {
1066
- identifier_func =
1067
- identifier_func->getResult ()->getAs <AnyFunctionType>();
1068
- }
1069
-
1070
1061
const AnyFunctionType *type_func =
1071
1062
type_result._types .front ()->getAs <AnyFunctionType>();
1072
1063
if (CanType (identifier_func->getResult ()
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ set(swift_stdlib_unittest_module_depends
3
3
SwiftPrivate SwiftPrivatePthreadExtras SwiftPrivateLibcExtras )
4
4
set (swift_stdlib_unittest_framework_depends )
5
5
set (swift_stdlib_unittest_private_link_libraries )
6
- set (swift_stdlib_unittest_compile_flags
7
- "-Xfrontend" "-disable-objc-attr-requires-foundation-module" )
6
+ set (swift_stdlib_unittest_compile_flags )
8
7
9
8
if (SWIFT_HOST_VARIANT MATCHES "${SWIFT_DARWIN_VARIANTS} " )
10
9
list (APPEND swift_stdlib_unittest_platform_sources
Original file line number Diff line number Diff line change @@ -448,30 +448,8 @@ let _crashedPrefix = "CRASHED:"
448
448
@_silgen_name ( " swift_stdlib_installTrapInterceptor " )
449
449
func _stdlib_installTrapInterceptor( )
450
450
451
- #if _runtime(_ObjC)
452
- @objc protocol _StdlibUnittestNSException {
453
- optional var name : AnyObject { get }
454
- }
455
- #endif
456
-
457
451
func _childProcess( ) {
458
452
_stdlib_installTrapInterceptor ( )
459
-
460
- #if _runtime(_ObjC)
461
- objc_setUncaughtExceptionHandler {
462
- var stderr = _Stderr ( )
463
- let maybeNSException = unsafeBitCast ( $0, to: _StdlibUnittestNSException. self)
464
- if let name = maybeNSException. name {
465
- print ( " *** [StdlibUnittest] Terminating due to uncaught exception " +
466
- " \( name) : \( $0) " ,
467
- to: & stderr)
468
- } else {
469
- print ( " *** [StdlibUnittest] Terminating due to uncaught exception: \( $0) " ,
470
- to: & stderr)
471
- }
472
- }
473
- #endif
474
-
475
453
while let line = _stdlib_getline ( ) {
476
454
let parts = line. _split ( separator: " ; " )
477
455
let testSuiteName = parts [ 0 ]
Original file line number Diff line number Diff line change @@ -7,15 +7,6 @@ struct Mystruct1 {
7
7
var intField = 3
8
8
// CHECK: decl: var intField: Int
9
9
}
10
- struct MyStruct2 {
11
- // CHECK: decl: struct MyStruct2
12
- init ( ) { }
13
- // CHECK: decl: init()
14
- init ( x: Int ) { }
15
- // CHECK: decl: init(x: Int)
16
- init ( x: Int , y: Int ) { }
17
- // CHECK: decl: init(x: Int, y: Int)
18
- }
19
10
20
11
class Myclass1 {
21
12
// CHECK: decl: class Myclass1
@@ -25,14 +16,13 @@ class Myclass1 {
25
16
26
17
func f1( ) {
27
18
// CHECK: decl: func f1()
28
- var s1ins = Mystruct1 ( ) // Implicit ctor
19
+ var s1ins = Mystruct1 ( )
29
20
// CHECK: decl: var s1ins: Mystruct1
30
- // CHECK: dref: init() for 'Mystruct1'
31
- _ = Mystruct1 ( intField : 1 ) // Implicit ctor
32
- // CHECK: dref: init(intField: Int) for ' Mystruct1'
21
+ // FIXME: missing init()?
22
+ // CHECK: dref: FAILURE for ' Mystruct1' usr=s:FV14swift_ide_test9Mystruct1cFT_S0_
23
+ // CHECK: type: Mystruct1
33
24
34
25
s1ins. intField = 34
35
- // CHECK: type: Mystruct1
36
26
// CHECK: type: Int
37
27
38
28
var c1ins = Myclass1 ( )
@@ -80,9 +70,6 @@ class Myclass2 {
80
70
81
71
arr3. append ( Myclass1 ( ) )
82
72
// CHECK: type: @lvalue Array<Myclass1> -> Myclass1 -> ()
83
-
84
- _ = Myclass2 . init ( )
85
- // CHECK: dref: init()
86
73
}
87
74
}
88
75
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments