OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20020525-1.c] - Blame information for rev 328

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR optimization/6703
2
   Origin: Glen Nakamura <glen@imodulo.com> */
3
/* { dg-do run } */
4
/* { dg-options "-O2" } */
5
 
6
extern void abort (void);
7
extern void exit (int);
8
 
9
void foo (int *x, int y)
10
{
11
  __builtin_memset (x, 0, y);
12
}
13
 
14
int main ()
15
{
16
  int x[2] = { -1, -1 };
17
 
18
  if (x[1] != -1)
19
    abort ();
20
  foo (x, sizeof (int) + 1);
21
  if (x[1] == -1)
22
    abort ();
23
  exit (0);
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.