20 lines
229 B
C
20 lines
229 B
C
|
/* { dg-do compile } */
|
||
|
/* { dg-options "-O2" } */
|
||
|
/* { dg-final { scan-assembler-not "\tlbu\t" } } */
|
||
|
|
||
|
#include <string.h>
|
||
|
|
||
|
char c[10];
|
||
|
|
||
|
void
|
||
|
f1 ()
|
||
|
{
|
||
|
memcpy (c, "123456", 6);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
f2 ()
|
||
|
{
|
||
|
memcpy (c, &"12345678"[2], 6);
|
||
|
}
|