aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-03-07 01:05:09 -0800
committerJoe Soroka <gits@joesoroka.com>2011-03-07 01:05:09 -0800
commit4fbe3cda330e6ac307c37888777145e7526a7078 (patch)
treec09e27bb0a118d540d543d8bc16f814bc439eebc /tests/tcctest.c
parent8bcb2ae1b262fd94fbc30ebf6f3b9bdd1ae6dc4a (diff)
downloadtinycc-4fbe3cda330e6ac307c37888777145e7526a7078.tar.gz
tinycc-4fbe3cda330e6ac307c37888777145e7526a7078.tar.bz2
use new weaken_symbol() to fix another real-world corner case
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c3
1 files changed, 3 insertions, 0 deletions
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);