Debian Codegraph @

gcc/testsuite/g++.dg/warn/nonnull2.C

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" }