aboutsummaryrefslogtreecommitdiff
path: root/test/lsan/TestCases/link_turned_off.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsan/TestCases/link_turned_off.cc')
-rw-r--r--test/lsan/TestCases/link_turned_off.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lsan/TestCases/link_turned_off.cc b/test/lsan/TestCases/link_turned_off.cc
index fd11272ceae3..7e1b33e7a1c4 100644
--- a/test/lsan/TestCases/link_turned_off.cc
+++ b/test/lsan/TestCases/link_turned_off.cc
@@ -11,7 +11,7 @@
int argc_copy;
extern "C" {
-int __lsan_is_turned_off() {
+int __attribute__((used)) __lsan_is_turned_off() {
return (argc_copy == 1);
}
}