blob: 2da7df73b72562cff236300cc168d060ff93e00a [file] [log] [blame]
// PR debug/95080
// { dg-do compile }
// { dg-options "-Og -fcse-follow-jumps -fnon-call-exceptions -fcompare-debug" }
char *a;
void baz ();
static inline bool
bar ()
{
int j = a[0] - 1;
switch (j)
{
case 0:
case 2:
return true;
default:
return false;
}
}
static inline bool
foo ()
{
if (bar ())
baz ();
return 0;
}
struct S
{
int h;
~S ();
};
S::~S ()
{
if (a[0] == 0)
foo () != h;
}