File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -fsanitize=integer %s -o %t && %t 2>&1 | FileCheck %s
2
2
// REQUIRES: ubsan-asan
3
- // ubsan-asan doesn't work on Darwin yet.
4
- // XFAIL: darwin
5
3
6
4
#include < stdint.h>
7
5
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ if ubsan_lit_test_mode == "Standalone":
21
21
config .available_features .add ("ubsan-standalone" )
22
22
clang_ubsan_cflags = []
23
23
elif ubsan_lit_test_mode == "AddressSanitizer" :
24
+ if config .host_os == 'Darwin' :
25
+ # ubsan-asan doesn't yet work on Darwin,
26
+ # see http://llvm.org/bugs/show_bug.cgi?id=21112.
27
+ config .unsupported = True
24
28
config .name = 'UndefinedBehaviorSanitizer-AddressSanitizer'
25
29
config .available_features .add ("ubsan-asan" )
26
30
clang_ubsan_cflags = ["-fsanitize=address" ]
You can’t perform that action at this time.
0 commit comments