On 10/18/2017 08:47 AM, Martin Liška wrote:
This is first patch that addresses test-suite fallout. All these tests fail in 
runtime.

+++ b/gcc/testsuite/g++.dg/missing-return.C
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-options "-Wreturn-type -fdump-tree-optimized" } */
+
+int foo(int a)
+{
+} /* { dg-warning "no return statement" } */
+
+/* { dg-final { scan-tree-dump "__builtin_unreachable" "optimized" } } */

This new test will fail with -fsanitize=return, won't it?

The rest of the patch is OK.

Jason

Reply via email to