blob: 4cf335a0db34bd51236d17c83ae7a05f6cacabfa [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-fwritable-strings" } */
/*#include <stdio.h>*/
void foo( void *dst)
{
char *ucdst;
ucdst = (char *)dst;
ucdst++;
*ucdst = 'X';
}
int main()
{
char *a = "Hello";
foo ((void *) a);
return 0;
}