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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [BUG21.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
typedef struct {
typedef struct {
        int knock_on_wood;              /* leave it out and it works. */
        int knock_on_wood;              /* leave it out and it works. */
        int f1;
        int f1;
} FOO;
} FOO;
 
 
typedef struct {
typedef struct {
        FOO *b1;
        FOO *b1;
} BAR;
} BAR;
 
 
Nase ()
Nase ()
{
{
        int i, j;
        int i, j;
        FOO *foop;
        FOO *foop;
        BAR *barp;
        BAR *barp;
 
 
        for (i = 0; i < 2; i++) {
        for (i = 0; i < 2; i++) {
                foop = &barp->b1[i];
                foop = &barp->b1[i];
                for (j = 0; j < foop->f1; j++) {
                for (j = 0; j < foop->f1; j++) {
                        /* dummy() */;          /* put it in and it works. */
                        /* dummy() */;          /* put it in and it works. */
                }
                }
        }
        }
}
}
 
 

powered by: WebSVN 2.1.0

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