We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f95fa commit d34a251Copy full SHA for d34a251
clang/test/Sema/atomic-ops.c
@@ -827,7 +827,7 @@ void nullPointerWarning(void) {
827
(void)__atomic_fetch_min((int*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}}
828
(void)__atomic_fetch_max((volatile int*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}}
829
(void)__atomic_fetch_max((int*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}}
830
-
+
831
// These don't warn: the "desired" parameter is passed by value. Even for
832
// atomic pointers the "desired" result can be NULL.
833
__c11_atomic_init(&vai, 0);
0 commit comments