Sign in
gnu
/
gcc
/
f0d57d62b1df1f9e7c02edb66d68810d935754bf
/
.
/
gcc
/
testsuite
/
c-c++-common
/
nonnull-3.c
blob: d2ccb24f4fdb270401ac18ba42075f0cdd418b99 [
file
] [
log
] [
blame
]
/* PR c++/79984 */
/* { dg-do compile } */
/* { dg-options "-Wnonnull-compare" } */
enum
{
r
=
1
};
__attribute__
((
nonnull
(
r
)))
int
f
(
int
*
p
)
{
return
p
==
0
;
/* { dg-warning "nonnull argument 'p' compared to NULL" } */
}