summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20070915-1.c
blob: 1cd64e5ca69ae28f61e0f7a6f05de592e6770e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR middle-end/33423 */

static struct
{
  char buf[15];
} u2;

void
test6 (void)
{
  int len;
  char *p;

  for (len = 0; len < 2; len++)
    {
      p = __builtin___memset_chk (u2.buf, '\0', len, 15);
      if (p != u2.buf)
	return;
    }
}