Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wconversion2.C
blob: 158c2a96719c7845222a823ea770d12ea07dd571 [
file
] [
log
] [
blame
]
// { dg-options "-Wconversion-null" }
void
foo
(
const
char
*);
void
bar
()
{
foo
(
false
);
}
// { dg-warning "pointer type for argument" "" { target { ! c++11 } } }
// { dg-error "cannot convert" "" { target c++11 } .-1 }