2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / missing-return.C
blob5f8e2ccb100259394611bc8f10d1435e118d66ea
1 /* { dg-do compile } */
2 /* { dg-options "-Wreturn-type -fdump-tree-optimized -O" } */
4 int foo(int a)
6 } /* { dg-warning "no return statement" } */
8 /* { dg-final { scan-tree-dump "__builtin_unreachable" "optimized" } } */