Cleanup: separate tests between 'unit' and 'compile'
[lttng-ust.git] / tests / unit / gcc-weak-hidden / b.c
diff --git a/tests/unit/gcc-weak-hidden/b.c b/tests/unit/gcc-weak-hidden/b.c
new file mode 100644 (file)
index 0000000..218a154
--- /dev/null
@@ -0,0 +1,20 @@
+int testint __attribute__((weak, visibility("hidden")));
+void *testptr __attribute__((weak, visibility("hidden")));
+struct {
+       char a[24];
+} testsym_24_bytes __attribute__((weak, visibility("hidden")));
+
+void *testfct_int(void)
+{
+       return &testint;
+}
+
+void *testfct_ptr(void)
+{
+       return &testptr;
+}
+
+void *testfct_24_bytes(void)
+{
+       return &testsym_24_bytes;
+}
This page took 0.024902 seconds and 4 git commands to generate.