OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr37393.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.