PR c++/82069 - ICE with lambda in template
[official-gcc.git] / gcc / testsuite / gcc.dg / pr71558.c
blob33a648e108c751a5a9acb0c3d0f45776dad93305
1 /* PR tree-optimization/71588 */
3 /* strcpy must not be pure, but make sure we don't ICE even when
4 it is declared incorrectly. */
5 char *strcpy (char *, const char *) __attribute__ ((__pure__));
6 __SIZE_TYPE__ strlen (const char *);
7 void *malloc (__SIZE_TYPE__);
9 char a[20];
11 char *
12 foo (void)
14 __SIZE_TYPE__ b = strlen (a);
15 char *c = malloc (b);
16 return strcpy (c, a);