]> git.pld-linux.org Git - packages/gcc.git/blob - gcc32-i386-memtest-test.patch
- massive attack: adding Source-md5
[packages/gcc.git] / gcc32-i386-memtest-test.patch
1 2002-05-20  Jakub Jelinek  <jakub@redhat.com>
2
3         * gcc.dg/20020525-1.c: New test.
4
5 --- gcc/testsuite/gcc.dg/20020525-1.c.jj        Thu Aug 30 22:30:55 2001
6 +++ gcc/testsuite/gcc.dg/20020525-1.c   Sat May 25 10:45:13 2002
7 @@ -0,0 +1,24 @@
8 +/* PR optimization/6703
9 +   Origin: Glen Nakamura <glen@imodulo.com> */
10 +/* { dg-do run } */
11 +/* { dg-options "-O2" } */
12 +
13 +extern void abort (void);
14 +extern void exit (int);
15 +
16 +void foo (int *x, int y)
17 +{
18 +  __builtin_memset (x, 0, y);
19 +}
20 +  
21 +int main ()
22 +{
23 +  int x[2] = { 0x5a5a5a5a, 0x5a5a5a5a };
24 +    
25 +  if (x[1] != 0x5a5a5a5a)
26 +    abort ();
27 +  foo (x, sizeof (int) + 1);
28 +  if (x[1] == 0x5a5a5a5a)
29 +    abort ();
30 +  exit (0);
31 +}
This page took 0.026995 seconds and 3 git commands to generate.