From b95196f5af032c250dc79427a63d9893153302e3 Mon Sep 17 00:00:00 2001 From: Andrey Drobyshev Date: Thu, 4 Oct 2018 21:23:47 +0300 Subject: [PATCH] ld/testing: fix "compilation failed" message for linker tests on x86. * ld-ifunc/pr18808b.c, ld-ifunc/pr19784c: change return type from int to void, as it should be. Change-Id: I4b9188cf37caf24c43ec607f0a731b91b03da92a Signed-off-by: Andrey Drobyshev --- ld/testsuite/ld-ifunc/pr18808b.c | 2 +- ld/testsuite/ld-ifunc/pr19784c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ld/testsuite/ld-ifunc/pr18808b.c b/ld/testsuite/ld-ifunc/pr18808b.c index 6f0db5a..7f79d45 100644 --- a/ld/testsuite/ld-ifunc/pr18808b.c +++ b/ld/testsuite/ld-ifunc/pr18808b.c @@ -6,7 +6,7 @@ static int foo_impl(int x) return x; } -int bar() +void bar() { int (*f)(int) = foo; diff --git a/ld/testsuite/ld-ifunc/pr19784c.c b/ld/testsuite/ld-ifunc/pr19784c.c index 117dfec..bc282d5 100644 --- a/ld/testsuite/ld-ifunc/pr19784c.c +++ b/ld/testsuite/ld-ifunc/pr19784c.c @@ -3,7 +3,7 @@ extern void abort (void); extern int foo (int) __attribute__ ((visibility("hidden"))); -int bar() +void bar() { if (foo (5) != 5) abort (); -- 2.7.4