X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fgcc-weak-hidden%2Fb.c;h=218a154537a3e4b60b65bee3ac20787ae05909b4;hb=cd33a48baed27c46bc6094f337a3c29039c1c172;hp=2419ed9f01d6025884e8ba1e46c4ca2750c8a1e4;hpb=c2c10797328e1a2d465d53f05a33b89d8dc16154;p=lttng-ust.git diff --git a/tests/gcc-weak-hidden/b.c b/tests/gcc-weak-hidden/b.c index 2419ed9f..218a1545 100644 --- a/tests/gcc-weak-hidden/b.c +++ b/tests/gcc-weak-hidden/b.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 *fct1(void) +void *testfct_int(void) { - return testsym; + return &testint; +} + +void *testfct_ptr(void) +{ + return &testptr; +} + +void *testfct_24_bytes(void) +{ + return &testsym_24_bytes; }