summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/tailcall-5.c
blob: 7aa433ecf7a47c04df583d22cef608c021f8e5c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-tailc" } */

void
set_integer (void *dest, int value, int length)
{
  int tmp = value;
  __builtin_memcpy (dest, (void *) &tmp, length);
}

/* { dg-final { scan-tree-dump-not "tail call" "tailc" } } */
/* { dg-final { cleanup-tree-dump "tailc" } } */