summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/microblaze/others/string_cst1.c
blob: 2a74f4ce721ce7b83b97b585015525b0fd33e23a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <string.h>

/* { dg-final { scan-assembler "\.rodata*" } } */
/* { dg-final { scan-assembler "\.data*" } } */

char *string1 = "string1";

int testfunc (char *cptr)
{
/* { dg-final { scan-assembler-not "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r13" } } */
    strcpy (string1, cptr);
}