Fix: test weak-hidden symbols
[lttng-ust.git] / tests / gcc-weak-hidden / c.c
index 59f9046d9295f1b493393f57c98bde228a72be37..1a744e29feda691995db3ad64808064d53fb1486 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 *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;
 }
This page took 0.02332 seconds and 4 git commands to generate.