llvm-project/compiler-rt/test/ubsan/TestCases/Misc
Shafik Yaghmour aea82d4551 [Clang] Fix how we set the NumPositiveBits on an EnumDecl to cover the case of single enumerator with value zero or an empty enum
Currently in Sema::ActOnEnumBody(...) when calculating NumPositiveBits we miss
the case where there is only a single enumerator with value zero and the case of
an empty enum. In both cases we end up with zero positive bits when in fact we
need one bit to store the value zero.

This PR updates the calculation to account for these cases.

Differential Revision: https://reviews.llvm.org/D130301
2022-07-25 16:01:01 -07:00
..
Inputs
Linux [ubsan][test] Unsupport Android for new test diag-stacktrace.cpp 2022-04-12 12:55:44 -07:00
bool.cpp
bool.m
bounds.cpp Recommit: Compress formatting of array type names (int [4] -> int[4]) 2021-10-21 11:34:43 -07:00
builtins.cpp
coverage-levels.cpp
deduplication.cpp
enum.cpp [Clang] Fix how we set the NumPositiveBits on an EnumDecl to cover the case of single enumerator with value zero or an empty enum 2022-07-25 16:01:01 -07:00
log-path_test.cpp [Sanitizers][test] XFAIL long double tests on Solaris/sparc 2022-02-09 09:20:21 +01:00
missing_return.cpp [Sanitizer] Fix sanitizer tests without reducing optimization levels 2021-02-11 15:22:20 -08:00
monitor.cpp [asan][ubsan][test] Add weak attributes for dyld Mach-O weak-def-coalescing 2022-07-13 11:46:56 -07:00
no-interception.cpp
nonnull-arg.cpp
nonnull.cpp [UBSan] Increase robustness of tests 2020-08-03 15:26:58 -07:00
nullability.c [UBSan] Increase robustness of tests 2020-08-03 15:26:58 -07:00
objc-cast.m [UBSan] Relax test expectations in Misc/objc-cast.m test 2022-01-12 05:25:02 -08:00
print_summary.c
unreachable.cpp
vla.c