Debian Codegraph @

gcc/testsuite/g++.dg/tree-ssa/pr37393.C

raw
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
15 baz (const char *fmt, ...)
16 {
17 bar (fmt, __builtin_va_arg_pack ());
18 }
19 };
20
21 void
22 test ()
23 {
24 A a;
25 if (a.foo ())
26 baz ("foo");
27 }