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/] [gcc.dg/] [tree-ssa/] [pr20739.c] - Diff between revs 298 and 338

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

Rev 298 Rev 338
/* PR middle-end/20739 */
/* PR middle-end/20739 */
 
 
/* dg-do compile */
/* dg-do compile */
/* dg-options "-O" */
/* dg-options "-O" */
 
 
/* We used to fail to compile this because gimplification dropped the
/* We used to fail to compile this because gimplification dropped the
   conversion that added the const qualifier to the sub-expression
   conversion that added the const qualifier to the sub-expression
   involving baz, and then immediately noticed and reported its
   involving baz, and then immediately noticed and reported its
   absence.  */
   absence.  */
 
 
typedef struct
typedef struct
{
{
    char chars[5];
    char chars[5];
}
}
baz_t;
baz_t;
 
 
extern baz_t * baz;
extern baz_t * baz;
 
 
extern void foo (baz_t);
extern void foo (baz_t);
int
int
bar (const baz_t * ls)
bar (const baz_t * ls)
{
{
    foo (ls == 0 ? *(&baz[0]) : *ls);
    foo (ls == 0 ? *(&baz[0]) : *ls);
}
}
 
 

powered by: WebSVN 2.1.0

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