Fix: test weak-hidden symbols
[lttng-ust.git] / tests / gcc-weak-hidden / b.c
index 2419ed9f01d6025884e8ba1e46c4ca2750c8a1e4..218a154537a3e4b60b65bee3ac20787ae05909b4 100644 (file)
@@ -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.024314 seconds and 4 git commands to generate.