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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr27260.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR middle-end/27260 */
2
 
3
extern void abort (void);
4
extern void *memset (void *, int, __SIZE_TYPE__);
5
 
6
char buf[65];
7
 
8
void
9
foo (int x)
10
{
11
  memset (buf, x != 2 ? 1 : 0, 64);
12
}
13
 
14
int
15
main (void)
16
{
17
  int i;
18
  buf[64] = 2;
19
  for (i = 0; i < 64; i++)
20
    if (buf[i] != 0)
21
      abort ();
22
  foo (0);
23
  for (i = 0; i < 64; i++)
24
    if (buf[i] != 1)
25
      abort ();
26
  foo (2);
27
  for (i = 0; i < 64; i++)
28
    if (buf[i] != 0)
29
      abort ();
30
  if (buf[64] != 2)
31
    abort ();
32
  return 0;
33
}

powered by: WebSVN 2.1.0

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