(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
pr83045.C
// PR c++/83045
// { dg-do compile }
// { dg-options "-Wreturn-type -O2" }

void foo (void);

int
bar (int a)
{
  if (a != 0)
    foo ();
}	/* { dg-warning "no return statement in function returning non-void" } */

int
baz (int a)
{
  if (a != 0)
    __builtin_abort ();
}	/* { dg-warning "control reaches end of non-void function" } */