summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr24445.c
blob: e001be6b966997ec2e892fab7b29fef2865c18b0 (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 ();
}