OSDN Git Service

2011-10-18 Janus Weil <janus@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr48213.c
1 /* PR target/48213 */
2 /* { dg-do compile } */
3 /* { dg-options "-g -O2" } */
4 /* { dg-options "-g -O2 -fpic" { target fpic } } */
5
6 struct S { int (*s) (void); };
7 int bar (void);
8
9 void
10 foo (struct S *x)
11 {
12   if (x->s != bar)
13     bar ();
14 }