[clang] [clang] Add __nullptr as a keyword to C (PR #123119)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 24 12:40:23 PST 2025
================
@@ -113,5 +113,3 @@ void foo(void *);
void bar() { foo(__nullptr); }
static_assert(nullptr == __nullptr);
static_assert(_Generic(typeof(__nullptr), nullptr_t: true, default: false));
-_Static_assert(__nullptr == 0); // Test that its value matches that of NULL
----------------
erichkeane wrote:
I would probably leave the tests from aaron in BOTH modes, but otherwise LGTM.
https://github.com/llvm/llvm-project/pull/123119
More information about the cfe-commits
mailing list