PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / inline-mcpy.c
blobc31be050efa27eb74026fa9c257f196b626ea323
1 /* Test if we inline memcpy even with -Os, when the user requested it. */
2 /* Don't name this test with memcpy in its name, otherwise the scan-assembler
3 would be confused. */
4 /* { dg-do compile { target *-*-linux* *-*-gnu* } } */
5 /* { dg-options "-Os -minline-all-stringops" } */
6 /* { dg-final { scan-assembler-not "memcpy" } } */
7 char f(int i)
9 char *ram_split[] = { "5:3", "3:1", "1:1", "3:5" };
10 return ram_split[i][0];