2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020525-1.c
blob7db44f0b2ebf685131baa01ea04b10e45301c206
1 /* PR optimization/6703
2 Origin: Glen Nakamura <glen@imodulo.com> */
3 /* { dg-do run } */
4 /* { dg-options "-O2" } */
6 extern void abort (void);
7 extern void exit (int);
9 void foo (int *x, int y)
11 __builtin_memset (x, 0, y);
14 int main ()
16 int x[2] = { -1, -1 };
18 if (x[1] != -1)
19 abort ();
20 foo (x, sizeof (int) + 1);
21 if (x[1] == -1)
22 abort ();
23 exit (0);