blob: 3709d363f1b9aec35ab866cce5eff8187b24cd9e [file] [log] [blame]
// 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" } */