[PATCH] D155552: [clang][Interp] Support __null
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 18 00:28:12 PDT 2023
cor3ntin added inline comments.
================
Comment at: clang/test/AST/Interp/literals.cpp:16
+static_assert(__null == __null, "");
static_assert(1 == 1, "");
static_assert(1 == 3, ""); // expected-error{{failed}} ref-error{{failed}}
----------------
Can you add a test along the lines of
constexpr void* v = nullptr;
static_assert(__null == v);
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155552/new/
https://reviews.llvm.org/D155552
More information about the cfe-commits
mailing list