diff options
Diffstat (limited to 'compiler-rt/lib/ubsan/lit_tests')
4 files changed, 8 insertions, 4 deletions
diff --git a/compiler-rt/lib/ubsan/lit_tests/Integer/add-overflow.cpp b/compiler-rt/lib/ubsan/lit_tests/Integer/add-overflow.cpp index 1b0a6d9c0b6..020ae767c60 100644 --- a/compiler-rt/lib/ubsan/lit_tests/Integer/add-overflow.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/Integer/add-overflow.cpp @@ -17,7 +17,7 @@ int main() { #ifdef ADD_I64 (void)(int64_t(8000000000000000000ll) + int64_t(2000000000000000000ll)); - // CHECK-ADD_I64: 8000000000000000000 + 2000000000000000000 cannot be represented in type 'long' + // CHECK-ADD_I64: 8000000000000000000 + 2000000000000000000 cannot be represented in type '{{long( long)?}}' #endif #ifdef ADD_I128 diff --git a/compiler-rt/lib/ubsan/lit_tests/Integer/sub-overflow.cpp b/compiler-rt/lib/ubsan/lit_tests/Integer/sub-overflow.cpp index 38fc7b05575..ee431548f38 100644 --- a/compiler-rt/lib/ubsan/lit_tests/Integer/sub-overflow.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/Integer/sub-overflow.cpp @@ -16,7 +16,7 @@ int main() { #ifdef SUB_I64 (void)(int64_t(-8000000000000000000ll) - int64_t(2000000000000000000ll)); - // CHECK-SUB_I64: -8000000000000000000 - 2000000000000000000 cannot be represented in type 'long' + // CHECK-SUB_I64: -8000000000000000000 - 2000000000000000000 cannot be represented in type '{{long( long)?}}' #endif #ifdef SUB_I128 diff --git a/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp b/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp index e9fffd5aefc..ee61e2c03bd 100644 --- a/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp @@ -8,6 +8,9 @@ // RUN: %t mV 2>&1 | FileCheck %s --check-prefix=CHECK-MEMBER // RUN: %t fV 2>&1 | FileCheck %s --check-prefix=CHECK-MEMFUN +// FIXME: This test produces linker errors on Darwin. +// XFAIL: darwin + struct S { S() : a(0) {} ~S() {} diff --git a/compiler-rt/lib/ubsan/lit_tests/lit.cfg b/compiler-rt/lib/ubsan/lit_tests/lit.cfg index 50a8cbd601e..9fd3a1aeaa1 100644 --- a/compiler-rt/lib/ubsan/lit_tests/lit.cfg +++ b/compiler-rt/lib/ubsan/lit_tests/lit.cfg @@ -59,6 +59,7 @@ lit.load_config(config, compiler_rt_lit_cfg) # Default test suffixes. config.suffixes = ['.c', '.cc', '.cpp'] -# UndefinedBehaviorSanitizer tests are currently supported on Linux only. -if config.host_os not in ['Linux']: +# UndefinedBehaviorSanitizer tests are currently supported on +# Linux and Darwin only. +if config.host_os not in ['Linux', 'Darwin']: config.unsupported = True |

