aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr89703-1.c
blob: 958cc7744e1f86d3cba86149d9b968eed60936f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/89703 */

typedef __SIZE_TYPE__ size_t;
extern char *strlen (const char *);
extern char *strnlen (const char *, size_t);
extern char c[2];

void
foo (char **q)
{
  q[0] = strlen (c);
  q[1] = strnlen (c, 2);
}