☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
nonnull2.C
☽
☼
gcc/testsuite/g++.dg/warn/nonnull2.C
code
plain
raw
1
// PR c++/60764
2
// { dg-options "-Wall" }
3
4
struct foo
5
{
6
foo () __attribute__ ((nonnull (1)));
7
};
8
9
const foo &x = foo (); // { dg-bogus "null argument" }
10
foo y = foo (); // { dg-bogus "null argument" }