repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86401
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
nonnull-3.c
blob
d2ccb24f4fdb270401ac18ba42075f0cdd418b99
1
/* PR c++/79984 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wnonnull-compare" } */
4
5
enum
{
r
=
1
};
6
7
__attribute__
((
nonnull
(
r
)))
int
8
f
(
int
*
p
)
9
{
10
return
p
==
0
;
/* { dg-warning "nonnull argument 'p' compared to NULL" } */
11
}