summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr43636.c
blob: ebf50edf31216f7eecb9bda20826dfc399f1ba20 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR target/43636 */

extern char a[], *b[];

char *
foo (char *x, int y)
{
  x = __builtin_stpcpy (x, b[a[y]]);
  return x;
}