Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wnonnull2.C
blob: 6757437de126a669f25a5d3d362a2a3f8a9115e2 [
file
] [
log
] [
blame
]
// PR c++/68767
// { dg-options "-Wnonnull" }
extern
int
len
(
const
char
*)
__attribute__
((
__nonnull__
(
1
)));
int
f
(
int
x
)
{
return
len
((
x
?
"x"
:
0
)
?
(
x
?
"x"
:
0
)
:
"x"
);
}