Skip to content

Add a test for the SIL type equality assert failures due to opaque re… #71187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

hjyamauchi
Copy link
Contributor

…turn types.

This is the test part of #70865 which was fixed by the commit
8d649a2

@hjyamauchi
Copy link
Contributor Author

@swift-ci Please test

…turn types

This is the test part of swiftlang#70865 which was fixed by the commit swiftlang@8d649a2
@hjyamauchi
Copy link
Contributor Author

@swift-ci Please test

@hjyamauchi
Copy link
Contributor Author

@swift-ci Please test Windows platform

1 similar comment
@hjyamauchi
Copy link
Contributor Author

@swift-ci Please test Windows platform

@compnerd
Copy link
Member

compnerd commented Feb 5, 2024

@swift-ci please test Windows platform

@hjyamauchi
Copy link
Contributor Author

@slavapestov I think this is what you requested here. Can you take a look?

// RUN: %target-swift-frontend -swift-version 5 -disable-availability-checking -c %S/Inputs/opaque_return_type_equality_input.swift -emit-module-path %t/opaque_return_type_equality_input.swiftmodule -I %t -O -module-name opaque_return_type_equality_input -o %t/opaque_return_type_equality_input.o
// RUN: %target-swift-frontend -swift-version 5 -disable-availability-checking -c %S/opaque_return_type_equality.swift -emit-module-path %t/opaque_return_type_equality.swiftmodule -I %t -O -module-name opaque_return_type_equality -o %t/opaque_return_type_equality.o

// Check that the SIL type equality check asserts don't fail between the opaque return types and their underlying types.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not require an additional flag to be passed? Something along the lines of -enable-sil-verify-all or -sil-verify-all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to trigger the assert failure without one.

@slavapestov slavapestov merged commit de885df into swiftlang:main Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants