This is an archive of the discontinued LLVM Phabricator instance.

[clang][Interp] Support __null
ClosedPublic

Authored by tbaeder on Jul 18 2023, 12:23 AM.

Diff Detail

Event Timeline

tbaeder created this revision.Jul 18 2023, 12:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 12:23 AM
tbaeder requested review of this revision.Jul 18 2023, 12:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 12:23 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
cor3ntin added inline comments.Jul 18 2023, 12:28 AM
clang/test/AST/Interp/literals.cpp
16

Can you add a test along the lines of

constexpr void* v = nullptr;
static_assert(__null == v);

tbaeder updated this revision to Diff 541366.Jul 18 2023, 12:49 AM
tbaeder marked an inline comment as done.
cor3ntin accepted this revision.Jul 18 2023, 12:51 AM
This revision is now accepted and ready to land.Jul 18 2023, 12:51 AM
This revision was landed with ongoing or failed builds.Aug 17 2023, 1:29 AM
This revision was automatically updated to reflect the committed changes.