aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-06-25 20:56:23 +0000
committerVedant Kumar <vsk@apple.com>2018-06-25 20:56:23 +0000
commitaf2672bd91fdbc81bca9b2f8f0e8aa6f93a0efd1 (patch)
treec4a9a80d4dbcd24412a8468d19fee17ee6272e76
parent558443a7e62c22b6c882b8bc92065c19627cfe34 (diff)
[ubsan] Mark a test case as unsupported on Windows
__ubsan_on_report isn't defined as weak, and redefining it in a test is not supported on Windows. See the error message here: https://reviews.llvm.org/D48446 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335523 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/ubsan/TestCases/Misc/monitor.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/ubsan/TestCases/Misc/monitor.cpp b/test/ubsan/TestCases/Misc/monitor.cpp
index 78187019c..c0eba0e89 100644
--- a/test/ubsan/TestCases/Misc/monitor.cpp
+++ b/test/ubsan/TestCases/Misc/monitor.cpp
@@ -1,6 +1,11 @@
// RUN: %clangxx -w -fsanitize=bool %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// __ubsan_on_report is not defined as weak. Redefining it here isn't supported
+// on Windows.
+//
+// UNSUPPORTED: win32
+
#include <iostream>
extern "C" {
@@ -10,8 +15,8 @@ void __ubsan_get_current_report_data(const char **OutIssueKind,
unsigned *OutLine, unsigned *OutCol,
char **OutMemoryAddr);
-// Override the weak definition of __ubsan_on_report from the runtime, just
-// for testing purposes.
+// Override the definition of __ubsan_on_report from the runtime, just for
+// testing purposes.
void __ubsan_on_report(void) {
const char *IssueKind, *Message, *Filename;
unsigned Line, Col;