X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fgcc-weak-hidden%2Fd.c;h=05e10b4e11f607fc15bf46068ed32c1624738d82;hb=cd33a48baed27c46bc6094f337a3c29039c1c172;hp=bb16bdb3cad8ed4e6e503a1deb15a6b17dbd7d0f;hpb=c2c10797328e1a2d465d53f05a33b89d8dc16154;p=lttng-ust.git diff --git a/tests/gcc-weak-hidden/d.c b/tests/gcc-weak-hidden/d.c index bb16bdb3..05e10b4e 100644 --- a/tests/gcc-weak-hidden/d.c +++ b/tests/gcc-weak-hidden/d.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 *fctlib2(void) +void *testlibfct2_int(void) { - return testsym; + return &testint; +} + +void *testlibfct2_ptr(void) +{ + return &testptr; +} + +void *testlibfct2_24_bytes(void) +{ + return &testsym_24_bytes; }