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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr37337.C] - Rev 338

Compare with Previous | Blame | View Log

// PR middle-end/37337
// { dg-do compile }
// { dg-options "-O2" }

extern "C"
{
  typedef struct _IO_FILE FILE;
  extern int __fprintf_chk (FILE *, int, const char *, ...);
  extern inline __attribute__ ((always_inline, gnu_inline, artificial))
  int fprintf (FILE *s, const char *f, ...)
  {
    return __fprintf_chk (s, 1, f, __builtin_va_arg_pack ());
  }
}

extern int a;
struct A
{
  virtual ~A (void)
  {
  }
};

struct B : public A
{
  B ();
  FILE *b;
};

void f (int *);
B::B ()
{
  f (&a);
  for (int i = 0; i < 6; i++)
    fprintf (b, "%02x", 0xff);
  fprintf (b, "\n--\n");
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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