2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24589 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the expressions to a statement list instead of gimplifying them. 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24589 * gcc.c-torture/execute/zero-struct-2.c: New test. From-SVN: r106436
21 lines
346 B
C
21 lines
346 B
C
void abort (void);
|
|
int ii;
|
|
typedef struct {} raw_spinlock_t;
|
|
typedef struct {
|
|
raw_spinlock_t raw_lock;
|
|
} spinlock_t;
|
|
raw_spinlock_t one_raw_spinlock (void)
|
|
{
|
|
raw_spinlock_t raw_lock;
|
|
ii++;
|
|
return raw_lock;
|
|
}
|
|
int main(void)
|
|
{
|
|
spinlock_t lock = (spinlock_t) { .raw_lock = one_raw_spinlock() };
|
|
if (ii != 1)
|
|
abort ();
|
|
return 0;
|
|
}
|
|
|