Skip to content

Commit 758318b

Browse files
committed
[compiler-rt] [test] [ubsan] Build .cpp files with %clangxx
This fixes linker errors in mingw configurations, where the ubsan runtime needs the C++ standard library when instrumenting C++ code. Differential Revision: https://reviews.llvm.org/D147861
1 parent 2ce71b2 commit 758318b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/ubsan/TestCases/Pointer/align-assume-ignorelist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %clang -fsanitize=alignment -fno-sanitize-recover=alignment -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s --implicit-check-not=" assumption "
1+
// RUN: %clangxx -fsanitize=alignment -fno-sanitize-recover=alignment -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s --implicit-check-not=" assumption "
22

33
// RUN: rm -f %tmp
44
// RUN: echo "[alignment]" >> %tmp
55
// RUN: echo "fun:main" >> %tmp
6-
// RUN: %clang -fsanitize=alignment -fno-sanitize-recover=alignment -fsanitize-ignorelist=%tmp -O0 %s -o %t && %run %t 2>&1
6+
// RUN: %clangxx -fsanitize=alignment -fno-sanitize-recover=alignment -fsanitize-ignorelist=%tmp -O0 %s -o %t && %run %t 2>&1
77

88
#include <stdlib.h>
99

0 commit comments

Comments
 (0)