URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.