* config/bfin/bfin.c (effective_address_32bit_p): Return true for
[official-gcc/alias-decl.git] / gcc / testsuite / gcc.dg / visibility-11.c
blob513ce64306eaf095dee546c5fb9e3abe51aa9bf4
1 /* PR middle-end/20297 */
2 /* The memcpy FUNCTION_DECL built in the middle-end for block moves got
3 hidden visibility from the first push, so the call didn't use the PLT. */
5 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
6 /* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
7 /* { dg-require-visibility "" } */
8 /* { dg-options "-Os -fpic -mstringop-strategy=libcall" } */
9 /* { dg-final { scan-assembler "memcpy@PLT" } } */
11 #pragma GCC visibility push(hidden)
12 #pragma GCC visibility push(default)
13 extern void* memcpy (void *, const void *, __SIZE_TYPE__);
14 #pragma GCC visibility pop
16 struct a { int a[4096]; };
18 extern void *bar (struct a *, struct a *, int);
20 void *
21 foo (struct a *a, struct a *b, int c)
23 struct a cc = *b;
24 return bar (a, &cc, 4 * c);