forked from OSchip/llvm-project
[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:
parent
b10b141a79
commit
487bef376b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue