* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / struct-cpy-1.c
blob52886feee0f98d062dd8659912288804a5768967
1 /* powerpc64-linux gcc miscompiled this due to rs6000.c:expand_block_move
2 not setting mem aliasing info correctly for the code implementing the
3 structure assignment. */
5 struct termios
7 unsigned int a;
8 unsigned int b;
9 unsigned int c;
10 unsigned int d;
11 unsigned char pad[28];
14 struct tty_driver
16 unsigned char pad1[38];
17 struct termios t __attribute__ ((aligned (8)));
20 static struct termios zero_t;
21 static struct tty_driver pty;
23 void ini (void)
25 pty.t = zero_t;
26 pty.t.a = 1;
27 pty.t.b = 2;
28 pty.t.c = 3;
29 pty.t.d = 4;
32 int main (void)
34 extern void abort (void);
36 ini ();
37 if (pty.t.a != 1
38 || pty.t.b != 2
39 || pty.t.c != 3
40 || pty.t.d != 4)
41 abort ();
42 return 0;