blob: 7421c623e5dc1a26e927b52041d7cda5eacf15e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
20100708-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma disable_warning 93
#endif
/* PR middle-end/44843 */
/* Verify that we don't use the alignment of struct S for inner accesses. */
struct S
{
double for_alignment;
struct { int x, y, z; } a[16];
};
void f(struct S *s);
void f(struct S *s)
{
unsigned int i;
for (i = 0; i < 16; ++i)
{
s->a[i].x = 0;
s->a[i].y = 0;
s->a[i].z = 0;
}
}
void
testTortureExecute (void)
{
#ifndef __SDCC_pdk14 // Lack of memory
struct S s;
f (&s);
return;
#endif
}
|