aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr50389.c
blob: 6d8b095b8cefa2d0af03e3de17240b682a6eeeb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-freorder-blocks -ftracer" } */

extern int data[];
extern int i;

void
foo (void)
{
  char buf[8];
  __builtin___memcpy_chk (buf, data, i ? 8 : 4,
			  __builtin_object_size (buf, 0));
  __builtin___memcpy_chk (buf, data, i ? 8 : 4,
			  __builtin_object_size (buf, 0));
}