URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR middle-end/37337
|
// PR middle-end/37337
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
extern "C"
|
extern "C"
|
{
|
{
|
typedef struct _IO_FILE FILE;
|
typedef struct _IO_FILE FILE;
|
extern int __fprintf_chk (FILE *, int, const char *, ...);
|
extern int __fprintf_chk (FILE *, int, const char *, ...);
|
extern inline __attribute__ ((always_inline, gnu_inline, artificial))
|
extern inline __attribute__ ((always_inline, gnu_inline, artificial))
|
int fprintf (FILE *s, const char *f, ...)
|
int fprintf (FILE *s, const char *f, ...)
|
{
|
{
|
return __fprintf_chk (s, 1, f, __builtin_va_arg_pack ());
|
return __fprintf_chk (s, 1, f, __builtin_va_arg_pack ());
|
}
|
}
|
}
|
}
|
|
|
extern int a;
|
extern int a;
|
struct A
|
struct A
|
{
|
{
|
virtual ~A (void)
|
virtual ~A (void)
|
{
|
{
|
}
|
}
|
};
|
};
|
|
|
struct B : public A
|
struct B : public A
|
{
|
{
|
B ();
|
B ();
|
FILE *b;
|
FILE *b;
|
};
|
};
|
|
|
void f (int *);
|
void f (int *);
|
B::B ()
|
B::B ()
|
{
|
{
|
f (&a);
|
f (&a);
|
for (int i = 0; i < 6; i++)
|
for (int i = 0; i < 6; i++)
|
fprintf (b, "%02x", 0xff);
|
fprintf (b, "%02x", 0xff);
|
fprintf (b, "\n--\n");
|
fprintf (b, "\n--\n");
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.