summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20030518-1.c
blob: 8cf2034518f90e5b97980ed01d09f0d6feff6cc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test case from PR middle-end/10472  */

extern void f (char *);

void foo (char *s)
{
  f (__builtin_stpcpy (s, "hi"));
}

void bar (char *s)
{
  f (__builtin_mempcpy (s, "hi", 3));
}