From 4fbe3cda330e6ac307c37888777145e7526a7078 Mon Sep 17 00:00:00 2001 From: Joe Soroka Date: Mon, 7 Mar 2011 01:05:09 -0800 Subject: use new weaken_symbol() to fix another real-world corner case --- tests/tcctest.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/tcctest.c') diff --git a/tests/tcctest.c b/tests/tcctest.c index fc2b9ed..1b2fb36 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -2374,6 +2374,9 @@ int some_lib_func(void); int dummy_impl_of_slf(void) { return 444; } int some_lib_func(void) __attribute__((weak, alias("dummy_impl_of_slf"))); +int weak_toolate() { return 0; } +int weak_toolate() __attribute__((weak)); + void __attribute__((weak)) weak_test(void) { printf("weak_f1=%d\n", weak_f1 ? weak_f1() : 123); -- cgit v1.3.1