URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu99" } */
|
/* { dg-options "-std=gnu99" } */
|
|
|
/* These are crash tests related to PR middle-end/6994; see also
|
/* These are crash tests related to PR middle-end/6994; see also
|
g++.dg/ext/vla1.C. Note that at present A and C cannot be inlined. */
|
g++.dg/ext/vla1.C. Note that at present A and C cannot be inlined. */
|
|
|
static inline void A (int i)
|
static inline void A (int i)
|
{
|
{
|
struct S { int ar[1][i]; } s;
|
struct S { int ar[1][i]; } s;
|
|
|
s.ar[0][0] = 0;
|
s.ar[0][0] = 0;
|
}
|
}
|
|
|
void B(void)
|
void B(void)
|
{
|
{
|
A(23);
|
A(23);
|
}
|
}
|
|
|
static inline void C (int i)
|
static inline void C (int i)
|
{
|
{
|
union U { int ar[1][i]; } u;
|
union U { int ar[1][i]; } u;
|
|
|
u.ar[0][0] = 0;
|
u.ar[0][0] = 0;
|
}
|
}
|
|
|
void D(void)
|
void D(void)
|
{
|
{
|
C(23);
|
C(23);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.