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