X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fgcc-weak-hidden%2Fc.c;h=1a744e29feda691995db3ad64808064d53fb1486;hb=cd33a48baed27c46bc6094f337a3c29039c1c172;hp=59f9046d9295f1b493393f57c98bde228a72be37;hpb=c2c10797328e1a2d465d53f05a33b89d8dc16154;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; }