OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr37337.C] - Rev 301

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.