URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR middle-end/37393
|
// PR middle-end/37393
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
struct A
|
struct A
|
{
|
{
|
~A ();
|
~A ();
|
bool foo () const;
|
bool foo () const;
|
};
|
};
|
|
|
extern "C"
|
extern "C"
|
{
|
{
|
extern void bar (const char *, ...) __attribute__ ((noreturn));
|
extern void bar (const char *, ...) __attribute__ ((noreturn));
|
extern inline __attribute__ ((always_inline, gnu_inline, artificial)) void
|
extern inline __attribute__ ((always_inline, gnu_inline, artificial)) void
|
baz (const char *fmt, ...)
|
baz (const char *fmt, ...)
|
{
|
{
|
bar (fmt, __builtin_va_arg_pack ());
|
bar (fmt, __builtin_va_arg_pack ());
|
}
|
}
|
};
|
};
|
|
|
void
|
void
|
test ()
|
test ()
|
{
|
{
|
A a;
|
A a;
|
if (a.foo ())
|
if (a.foo ())
|
baz ("foo");
|
baz ("foo");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.