blob: 2f9281c9657658c0b00e02d22f9f6930903c73bb [file] [log] [blame]
// PR middle-end/37393
// { dg-do compile }
// { dg-options "-O2" }
struct A
{
~A ();
bool foo () const;
};
extern "C"
{
extern void bar (const char *, ...) __attribute__ ((noreturn));
extern inline __attribute__ ((always_inline, gnu_inline, artificial)) void
baz (const char *fmt, ...)
{
bar (fmt, __builtin_va_arg_pack ());
}
};
void
test ()
{
A a;
if (a.foo ())
baz ("foo");
}