OSDN Git Service

* gcc.c-torture/execute/960321-1.x: Remove.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / 981130-1.c
1 struct s { int a; int b;};
2 struct s s1;
3 struct s s2 = { 1, 2, };
4
5 void
6 check (a, b)
7      int a;
8      int b;
9 {
10   if (a == b)
11     exit (0);
12   else
13     abort ();
14 }
15
16 int
17 main ()
18 {
19   int * p;
20   int x;
21   
22   s1.a = 9;
23   p    = & s1.a;
24   s1   = s2;
25   x    = * p;
26   
27   check (x, 1);
28 }
29
30