1 // PR middle-end/37393 2 // { dg-do compile } 3 // { dg-options "-O2" } 4 5 struct A 6 { 7 ~A (); 8 bool foo () const; 9 }; 10 11 extern "C" 12 { 13 extern void bar (const char *, ...) __attribute__ ((noreturn)); 14 extern inline __attribute__ ((always_inline, gnu_inline, artificial)) void baz(const char * fmt,...)15 baz (const char *fmt, ...) 16 { 17 bar (fmt, __builtin_va_arg_pack ()); 18 } 19 }; 20 21 void test()22test () 23 { 24 A a; 25 if (a.foo ()) 26 baz ("foo"); 27 } 28