Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / memset-4.c
blob2ac445cfb7df1dbdd0ca8636486738b0d7caa149
1 /* Test to make sure memset of small old size works
2 correctly. */
3 #define SIZE 15
5 void f(char *a) __attribute__((noinline));
6 void f(char *a)
8 __builtin_memset (a, 0, SIZE);
12 int main(void)
14 int i;
15 char b[SIZE];
16 for(i = 0; i < sizeof(b); i++)
18 b[i] = i;
20 f(b);
21 for(i = 0; i < sizeof(b); i++)
23 if (0 != b[i])
24 __builtin_abort ();
26 return 0;