Skip to content
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

Update the Standard Library Header Units test for attributes #1747

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

StephanTLavavej
Copy link
Member

@cdacamar just merged MSVC-PR-310951 "[modules] Persist standard C++ attributes" to fix DevCom-1160041 VSO-1180134 "Standard Library Header Units: deprecated attributes aren't imported". As expected, this causes the test's usage of codecvt_mode::consume_header to emit a deprecation warning:

enum _CXX17_DEPRECATE_CODECVT_HEADER codecvt_mode { consume_header = 4, generate_header = 2, little_endian = 1 };

The fix is to silence the deprecation warning and remove the TRANSITION comment. This is consistent with the test coverage below for <strstream> - we know we're exercising deprecated machinery.

It's OK to apply this change to GitHub (which is using the latest public preview, 16.10 Preview 1) before picking up the compiler change - we can suppress a deprecation warning that isn't being emitted.

@StephanTLavavej StephanTLavavej added the test Related to test code label Mar 16, 2021
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner March 16, 2021 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants