projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng-ust-elf.c: define NT_GNU_BUILD_ID if not defined
[lttng-ust.git]
/
tests
/
gcc-weak-hidden
/
b.c
diff --git
a/tests/gcc-weak-hidden/b.c
b/tests/gcc-weak-hidden/b.c
index 2419ed9f01d6025884e8ba1e46c4ca2750c8a1e4..218a154537a3e4b60b65bee3ac20787ae05909b4 100644
(file)
--- 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;
}
}
This page took
0.025378 seconds
and
4
git commands to generate.