PR target/27758
* gcc.dg/pr27758.c: New test.
From-SVN: r114133
+2006-05-26 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/27758
+ * gcc.dg/pr27758.c: New test.
+
2006-05-24 Falk Hueffner <falk@debian.org>
* gcc.c-torture/compile/pr27571.c: New test.
--- /dev/null
+/* PR target/27758 */
+/* { dg-do run { target fpic } } */
+/* { dg-options "-O0 -fpic" } */
+
+typedef int (*fn) (void);
+
+static inline int
+foo (void)
+{
+ return 1;
+}
+
+fn
+test (void)
+{
+ return foo;
+}
+
+int
+main (void)
+{
+ fn f = test ();
+ return f () != 1;
+}