OSDN Git Service

2011-10-18 Janus Weil <janus@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr24620.c
1 /* This used to ICE due to a backend problem on s390.  */
2
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
5
6 struct rgba
7 {
8   unsigned char r;
9   unsigned char g;
10   unsigned char b;
11   unsigned char a;
12 };
13
14 void g (struct rgba);
15
16 void f (void) 
17 {
18   struct rgba x;
19
20   x.r = 0;
21   x.g = 128;
22   x.b = 128;
23   x.a = 26;
24
25   g (x);
26 }
27