Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
c-c++-common
/
nonnull-3.c
blob: 42081c889f265132be17e27c5c6e49a7cf2cae2e [
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" } */
}