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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [memset.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2002, 2003  Free Software Foundation.
2
 
3
   Ensure that builtin memset operations for constant length and
4
   non-constant assigned value don't cause compiler problems.
5
 
6
   Written by Roger Sayle, 21 April 2002.  */
7
 
8
extern void abort (void);
9
typedef __SIZE_TYPE__ size_t;
10
extern void *memset (void *, int, size_t);
11
 
12
char buffer[32];
13
int argc = 1;
14
 
15
void
16
main_test (void)
17
{
18
  memset (buffer, argc, 0);
19
  memset (buffer, argc, 1);
20
  memset (buffer, argc, 2);
21
  memset (buffer, argc, 3);
22
  memset (buffer, argc, 4);
23
  memset (buffer, argc, 5);
24
  memset (buffer, argc, 6);
25
  memset (buffer, argc, 7);
26
  memset (buffer, argc, 8);
27
  memset (buffer, argc, 9);
28
  memset (buffer, argc, 10);
29
  memset (buffer, argc, 11);
30
  memset (buffer, argc, 12);
31
  memset (buffer, argc, 13);
32
  memset (buffer, argc, 14);
33
  memset (buffer, argc, 15);
34
  memset (buffer, argc, 16);
35
  memset (buffer, argc, 17);
36
}

powered by: WebSVN 2.1.0

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