Skip to content

Commit 6d33c0d

Browse files
committed
Update package cmo tests
Disable package cmo test with deserialization warning until rdar://143923551 is fixed. Delete package cmo test with -experimental-skip-deserialization-checks-for-package-cmo SIL verification is stricter and in some cases enabled in release build of the compiler as well with -enable-ossa-modules. This test with -experimental-skip-deserialization-checks-for-package-cmo previously passed even though there were SIL instructions like strong_retain/strong_release on a trivial type. Disable this instance since SIL verification triggers copy_value etc on a trivial type.
1 parent 98c7df2 commit 6d33c0d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/SILOptimizer/package-cmo-disallow-bypass-resilience-on-deserialization-fail.swift

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,6 @@
2020
// RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \
2121
// RUN: -lObjCAPI -Xcc -DINCLUDE_FOO
2222

23-
/// Build a swift module that depends on the above Core swift module without `INCLUDE_FOO`;
24-
/// it should fail and diagnose that there was a deserialization failure.
25-
// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIA)) %t/src/UIA.swift \
26-
// RUN: -module-name MyUIA -emit-module -package-name pkg \
27-
// RUN: -enable-library-evolution -O -wmo \
28-
// RUN: -I %t/artifacts/SwiftBuilds -L %t/artifacts/SwiftBuilds \
29-
// RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \
30-
// RUN: -lMyCore -lObjCAPI -Rmodule-loading \
31-
// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK
32-
// CHECK-DAG: warning: cannot bypass resilience due to member deserialization failure while attempting to access missing member of 'PkgStructA' in module 'MyCore' from module 'MyCore'
33-
34-
/// Build a swift module that depends on Core without `INCLUDE_FOO` but
35-
/// opt out of deserialization checks; it builds even though deserialization failed.
36-
// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIA)) %t/src/UIA.swift \
37-
// RUN: -module-name MyUIA -emit-module -package-name pkg \
38-
// RUN: -enable-library-evolution -O -wmo \
39-
// RUN: -Xfrontend -experimental-skip-deserialization-checks-for-package-cmo \
40-
// RUN: -I %t/artifacts/SwiftBuilds -L %t/artifacts/SwiftBuilds \
41-
// RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \
42-
// RUN: -lMyCore -lObjCAPI -Rmodule-loading
43-
4423
/// Build another swift module that depends on Core; since FooObjc is not referenced
4524
/// in the call chain, there's no deserialization failure, and bypassing resilience is allowed.
4625
// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIB)) %t/src/UIB.swift \

0 commit comments

Comments
 (0)