* gcc.dg/pr27758.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114133
138bc75d-0d04-0410-961f-
82ee72b054a4
+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;
+}