Sign in
gnu
/
gcc
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
gcc.dg
/
nonnull-7.c
blob: d66a60985b0cf5c532d2a6b808f351f17ec7b78a [
file
] [
log
] [
blame
]
/* { dg-do compile { target nonpic } }
{ dg-options "-O2 -Wsuggest-attribute=returns_nonnull" } */
int
*
q
;
int
*
test
()
/* { dg-warning "candidate for attribute .returns_nonnull." } */
{
if
(!
q
)
__builtin_unreachable
();
return
q
;
}