X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fgcc-weak-hidden%2Fb.c;h=218a154537a3e4b60b65bee3ac20787ae05909b4;hb=3227b2b93e5eafe5e9ab5fcbad718eb36cd4a383;hp=2419ed9f01d6025884e8ba1e46c4ca2750c8a1e4;hpb=5517d34d4c242bb2a5233e08e21eec7fa12f3489;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; }