summaryrefslogtreecommitdiff
path: root/src/third_party/unwind/dist/tests/Ltest-init-local-signal-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/unwind/dist/tests/Ltest-init-local-signal-lib.c')
-rw-r--r--src/third_party/unwind/dist/tests/Ltest-init-local-signal-lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/third_party/unwind/dist/tests/Ltest-init-local-signal-lib.c b/src/third_party/unwind/dist/tests/Ltest-init-local-signal-lib.c
new file mode 100644
index 00000000000..7474f71f49d
--- /dev/null
+++ b/src/third_party/unwind/dist/tests/Ltest-init-local-signal-lib.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+/* To prevent inlining and optimizing away */
+int foo(volatile int* f) {
+ return *f;
+}