URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* Test that the initializer of a compound literal is properly walked
|
/* Test that the initializer of a compound literal is properly walked
|
when tree inlining. */
|
when tree inlining. */
|
/* Origin: PR c/5105 from <aj@suse.de>. */
|
/* Origin: PR c/5105 from <aj@suse.de>. */
|
|
|
typedef struct { long p; } pt;
|
typedef struct { long p; } pt;
|
|
|
inline pt f (pt _p)
|
inline pt f (pt _p)
|
{
|
{
|
long p = _p.p;
|
long p = _p.p;
|
|
|
return (pt) { (p) };
|
return (pt) { (p) };
|
}
|
}
|
|
|
static int mmap_mem (void)
|
static int mmap_mem (void)
|
{
|
{
|
pt p;
|
pt p;
|
p = f (p);
|
p = f (p);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.