URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr37337.C] - Rev 478
Go to most recent revision | 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");
}
Go to most recent revision | Compare with Previous | Blame | View Log