Debian Codegraph @

gcc/testsuite/g++.dg/missing-return.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-Wreturn-type -fdump-tree-optimized -O" } */
3
4 int foo(int a)
5 {
6 } /* { dg-warning "no return statement" } */
7
8 /* { dg-final { scan-tree-dump "__builtin_unreachable" "optimized" } } */