summaryrefslogtreecommitdiff
path: root/test/ubsan/TestCases/Integer/suppressions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ubsan/TestCases/Integer/suppressions.cpp')
-rw-r--r--test/ubsan/TestCases/Integer/suppressions.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ubsan/TestCases/Integer/suppressions.cpp b/test/ubsan/TestCases/Integer/suppressions.cpp
index e6ae626db3d73..a9e660111bee0 100644
--- a/test/ubsan/TestCases/Integer/suppressions.cpp
+++ b/test/ubsan/TestCases/Integer/suppressions.cpp
@@ -1,5 +1,9 @@
// RUN: %clangxx -fsanitize=integer -g0 %s -o %t
+// Suppression by symbol name (unsigned-integer-overflow:do_overflow below)
+// requires the compiler-rt runtime to be able to symbolize stack addresses.
+// REQUIRES: can-symbolize
+
// Fails without any suppression.
// RUN: %env_ubsan_opts=halt_on_error=1 not %run %t 2>&1 | FileCheck %s
@@ -30,4 +34,3 @@ int main() {
do_overflow();
return 0;
}
-