[PATCH] Re-add calling emit_clobber in lower-subreg.cc's resolve_simple_move.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 980605-1.c
blob588146604233aadce07841c8606d998bcebb7850
1 /* { dg-add-options stack_size } */
3 #include <stdio.h>
5 void abort (void);
6 void exit (int);
8 #ifndef STACK_SIZE
9 #define STACK_SIZE 200000
10 #endif
12 __inline__ static int
13 dummy (int x)
15 int y;
16 y = (long) (x * 4711.3);
17 return y;
20 int getval (void);
22 int
23 f2 (double x)
25 unsigned short s;
26 int a, b, c, d, e, f, g, h, i, j;
28 a = getval ();
29 b = getval ();
30 c = getval ();
31 d = getval ();
32 e = getval ();
33 f = getval ();
34 g = getval ();
35 h = getval ();
36 i = getval ();
37 j = getval ();
40 s = x;
42 return a + b + c + d + e + f + g + h + i + j + s;
45 int x = 1;
47 int
48 getval (void)
50 return x++;
53 char buf[10];
55 void
56 f ()
58 char ar[STACK_SIZE/2];
59 int a, b, c, d, e, f, g, h, i, j, k;
61 a = getval ();
62 b = getval ();
63 c = getval ();
64 d = getval ();
65 e = getval ();
66 f = getval ();
67 g = getval ();
68 h = getval ();
69 i = getval ();
70 j = getval ();
72 k = f2 (17.0);
74 sprintf (buf, "%d\n", a + b + c + d + e + f + g + h + i + j + k);
75 if (a + b + c + d + e + f + g + h + i + j + k != 227)
76 abort ();
79 int
80 main (void)
82 f ();
83 exit (0);