summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr24445.c
blob: f34784ced221c37a0436cf890773fd4ab4961092 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile { target fpic } } */
/* { dg-options "-O1 -fpic" } */
extern int *bar (void) __attribute__ ((__pure__));
extern char *baz;
void
foo (void)
{
  baz = (char *) bar ();
}