This is an archive of the discontinued LLVM Phabricator instance.

[test] Fix test failure in Clang :: Lexer/char-escapes-delimited.c
ClosedPublic

Authored by ormris on Sep 15 2021, 2:54 PM.

Details

Summary

Specify the C and C++ standards explicitly for this test. This avoids failures for drivers that default to older standards.

Diff Detail

Event Timeline

ormris requested review of this revision.Sep 15 2021, 2:54 PM
ormris created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2021, 2:54 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Thanks!

For which platforms did you had issue?
This is suppose to work in all language modes (we might want to use C99/C++98 to make sure that's the case)

ormris added a comment.EditedSep 15 2021, 3:39 PM

We saw this failure on our internal SIE (PlayStation) platform. I just tested on x86_64-unknown-linux-gnu using C99 and C++98, though, and the test fails. It looks like this feature is restricted to more recent standard versions somehow.

Okay, what's happening is that utf literals are only available for c++11 onward and the tests do not account for that.
Would you mind dropping the minimum version to C++11 and C11? I think that would be reasonable.

I could do a more extensive fix but I don't know how urgent this is for you

ormris updated this revision to Diff 372839.Sep 15 2021, 4:54 PM
  • Downgrade to C11 and C++11

I think the test fix is all that's needed for now. This is somewhat urgent for us.

cor3ntin accepted this revision.Sep 15 2021, 5:26 PM
This revision is now accepted and ready to land.Sep 15 2021, 5:26 PM

Thanks for the review!