X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fgcc-weak-hidden%2Fc.c;h=1a744e29feda691995db3ad64808064d53fb1486;hb=3227b2b93e5eafe5e9ab5fcbad718eb36cd4a383;hp=59f9046d9295f1b493393f57c98bde228a72be37;hpb=5517d34d4c242bb2a5233e08e21eec7fa12f3489;p=lttng-ust.git diff --git a/tests/gcc-weak-hidden/c.c b/tests/gcc-weak-hidden/c.c index 59f9046d..1a744e29 100644 --- a/tests/gcc-weak-hidden/c.c +++ b/tests/gcc-weak-hidden/c.c @@ -1,6 +1,20 @@ -char testsym[9] __attribute__((weak, visibility("hidden"))); +int testint __attribute__((weak, visibility("hidden"))); +void *testptr __attribute__((weak, visibility("hidden"))); +struct { + char a[24]; +} testsym_24_bytes __attribute__((weak, visibility("hidden"))); -void *fctlib1(void) +void *testlibfct1_int(void) { - return testsym; + return &testint; +} + +void *testlibfct1_ptr(void) +{ + return &testptr; +} + +void *testlibfct1_24_bytes(void) +{ + return &testsym_24_bytes; }