llvm-project/clang/test
Erich Keane 7130a93934 Correct warning on Float->Integer conversions.
As identified and briefly discussed here:
https://bugs.llvm.org/show_bug.cgi?id=37305

Converting a floating point number to an integer type when
the integral part is out of the range of the integer type is
undefined behavior in C. Additionally, CodeGen emits an undef
in this situation.

HOWEVER, we've been giving a warning that says that the value is
changed. This patch corrects the warning to list that it is actually
undefined behavior.

Differential Revision: https://reviews.llvm.org/D46535

llvm-svn: 331673
2018-05-07 20:52:56 +00:00
..
ARCMT [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
ASTMerge [ASTImporter] FriendDecl importing improvements 2018-04-25 17:28:03 +00:00
Analysis [analyzer] Invalidate union regions properly. Don't hesitate to load later. 2018-05-04 22:19:32 +00:00
CXX [Sema] Do not match function type with const T in template argument deduction 2018-05-03 01:43:23 +00:00
CodeCompletion [CodeComplete] Fix completion in the middle of ident in ctor lists. 2018-04-25 15:13:34 +00:00
CodeGen Add -target to address errors in test from r331592 2018-05-05 16:37:31 +00:00
CodeGenCUDA Fix failure in lit test kernel-call.cu due to name mangling 2018-04-25 13:07:58 +00:00
CodeGenCXX Rename invariant.group.barrier to launder.invariant.group 2018-05-03 11:03:01 +00:00
CodeGenCoroutines [Coroutines] Catch exceptions in await_resume 2018-05-04 14:02:37 +00:00
CodeGenObjC [CodeGen] Fix a crash that occurs when a non-trivial C struct with a 2018-04-16 20:23:52 +00:00
CodeGenObjCXX [CodeGen] Avoid destructing a callee-destructued struct type in a 2018-04-27 06:57:00 +00:00
CodeGenOpenCL Add Microsoft Mangling for OpenCL Half Type 2018-05-01 14:16:15 +00:00
Coverage [analyzer] Fix filename in cross-file HTML report 2018-05-02 14:26:12 +00:00
CoverageMapping [Coverage] Handle break/continue outside of loop bodies 2018-02-16 07:59:43 +00:00
Driver [Driver] Use -fuse-line-directives by default in MSVC mode 2018-05-07 20:26:09 +00:00
FixIt [Parser][FixIt] Better diagnostics for "typedef" instead of "typename" typo 2018-02-08 14:37:58 +00:00
Format [clang-format] Fix bug where -dump-config failed on ObjC header 2018-01-29 17:36:43 +00:00
Frontend [clang-cl] Print /showIncludes to stderr, if used in combination with /E, /EP or /P 2018-05-04 15:58:31 +00:00
Headers Revert "Emit an error when mixing <stdatomic.h> and <atomic>" 2018-05-02 19:52:07 +00:00
Import [ASTImporter] Support LambdaExprs and improve template support 2018-01-26 11:36:54 +00:00
Index [libclang] Fix the type of 'int (Foo);' 2018-05-01 20:45:25 +00:00
Integration
Layout Non-zero-length bit-fields make a class non-empty. 2018-05-07 06:43:30 +00:00
Lexer Implement P0482R2, support for char8_t type. 2018-05-01 05:02:45 +00:00
Misc Add warning flag -Wordered-compare-function-pointers. 2018-05-05 00:09:51 +00:00
Modules Track the result of evaluating a computed noexcept specification on the 2018-05-03 03:58:32 +00:00
OpenMP [OPENMP, NVPTX] Small test fix, NFC. 2018-05-07 17:38:13 +00:00
PCH Add tests for llvm-bcanalyzer stream types 2018-04-22 00:04:35 +00:00
Parser PR37189 Fix incorrect end source location and spelling for a split '>>' token. 2018-04-30 05:25:48 +00:00
Preprocessor [X86] directstore and movdir64b intrinsics 2018-05-01 10:05:42 +00:00
Profile [PGO] Detect more structural changes with the stable hash 2017-11-14 23:56:53 +00:00
Refactor [refactor][extract] avoid extracting expressions from types in functions 2017-11-14 18:59:01 +00:00
Rewriter
Sema Disallow pointers to const in __sync_fetch_and_xxx. 2018-05-05 17:38:42 +00:00
SemaCUDA Fix typos in clang 2018-04-06 15:14:32 +00:00
SemaCXX Correct warning on Float->Integer conversions. 2018-05-07 20:52:56 +00:00
SemaObjC [ObjC] Supress the 'implementing unavailable method' warning when 2018-05-03 01:12:06 +00:00
SemaObjCXX [Sema][ObjC] Ensure that the return type of an ObjC method is a complete 2018-04-12 06:01:41 +00:00
SemaOpenCL [OpenCL] Add "cles_khr_int64" extension. 2018-01-26 11:48:46 +00:00
SemaTemplate Fix explicit template parameter reporting for narrowing conversions 2018-05-07 17:05:20 +00:00
TableGen TableGen: Give up on exact fixits for diagnostic groups 2018-03-06 17:55:00 +00:00
Templight [Templight] Template Instantiation Observer 2018-02-10 14:04:45 +00:00
Tooling Fix test clang-diff-json.cpp 2018-02-10 21:28:55 +00:00
Unit [lit] Set shlibpath_var on Solaris 2017-11-27 13:33:19 +00:00
VFS [vfs] Don't bail out after a missing -ivfsoverlay file 2018-03-23 17:37:27 +00:00
clang-rename
.clang-format
CMakeLists.txt [ThinLTO/CFI] Include TYPE_ID summaries into GLOBALVAL_SUMMARY_BLOCK 2018-02-14 22:41:15 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [debuginfo] Remove temporary FIXME. 2017-12-14 22:12:46 +00:00
lit.site.cfg.py.in
make_test_dirs.pl