summaryrefslogtreecommitdiffstats
path: root/cmake/weak_symbol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/weak_symbol.cpp')
-rw-r--r--cmake/weak_symbol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/weak_symbol.cpp b/cmake/weak_symbol.cpp
new file mode 100644
index 0000000..902f683
--- /dev/null
+++ b/cmake/weak_symbol.cpp
@@ -0,0 +1,3 @@
+void __attribute((weak)) f();
+
+int main() { return 0; }