Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
nonnull2.C
blob: 10515a47405d634c06aad4bf4cf0b1fccd3ab081 [
file
] [
log
] [
blame
]
// PR c++/60764
// { dg-options "-Wall" }
struct
foo
{
foo
()
__attribute__
((
nonnull
(
1
)));
};
const
foo
&
x
=
foo
();
// { dg-bogus "null argument" }
foo y
=
foo
();
// { dg-bogus "null argument" }