Fix: test weak-hidden symbols
[lttng-ust.git] / tests / gcc-weak-hidden / d.c
index bb16bdb3cad8ed4e6e503a1deb15a6b17dbd7d0f..05e10b4e11f607fc15bf46068ed32c1624738d82 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 *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;
 }
This page took 0.025132 seconds and 4 git commands to generate.