☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wnonnull2.C
☽
☼
gcc/testsuite/g++.dg/warn/Wnonnull2.C
code
plain
raw
1
// PR c++/68767
2
// { dg-options "-Wnonnull" }
3
4
extern int len (const char*) __attribute__ ((__nonnull__ (1)));
5
6
int f (int x)
7
{
8
return len ((x ? "x" : 0) ? (x ? "x" : 0) : "x");
9
}