summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr47610.c
blob: 906af74f92075e66722d832653629676337e347c (plain)
1
2
3
4
5
6
7
8
/* PR middle-end/47610 */
/* { dg-do compile } */
/* { dg-options "-O2 -fpic" { target fpic } } */
struct S { const char *s; };
const struct S s[] = { "s" };
extern void foo (void (*) (void));
static void bar (void) {}
void baz () { foo (bar); }