Debian Codegraph @

gcc/testsuite/g++.dg/ubsan/return-8.C

raw
1 // { dg-additional-options "-fsanitize=undefined -fsanitize-undefined-trap-on-error" }
2
3 bool b;
4
5 int f() {
6 if (b) return 42;
7 } // { dg-warning "-Wreturn-type" }
8
9 int main() { f(); }