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