// { dg-do run }// { dg-options "-fsanitize=return" }// { dg-shouldfail "ubsan" }struct S {S(); ~S(); };S::S() {}S::~S() {}intfoo(int x){
S a;{
S b;if(x)return1;}}intmain(){foo(0);}// { dg-output "execution reached the end of a value-returning function without returning a value" }