summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/pr55513.C
blob: 1c119e40ebd529fbb3db128b585e8f3f18858a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile }
// { dg-options "-O0 -fdump-tree-gimple" }

int
main ()
{
  char s[10];
  const int t = (__builtin_memcpy (s, "Hello", 6), 777);
  __builtin_printf ("%d %s\n", t, s);
  return 0;
}

// { dg-final { scan-tree-dump-times "memcpy" 1 "gimple" } }