Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wconversion-null-5.C

raw
1 // PR c++/60304
2 // { dg-do compile { target c++98_only } }
3 // { dg-options "-Wconversion-null" }
4
5 #include <stdbool.h>
6 int * foo() {return false;} // { dg-warning "converting 'false' to pointer" }