Commit 262c52ac by Jakub Jelinek Committed by Jakub Jelinek

re PR target/27758 (-O0 -fpic link failure)

	PR target/27758
	* gcc.dg/pr27758.c: New test.

From-SVN: r114133
parent b713aa3a
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.
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment