[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

llvm-svn: 335523
This commit is contained in:
Vedant Kumar 2018-06-25 20:56:23 +00:00
parent b10b141a79
commit 487bef376b
1 changed files with 7 additions and 2 deletions

View File

@ -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;