llvm-project/clang/test
Vedant Kumar f4217f862a [Sema] Add lvalue-to-rvalue cast in direct-list-initialization of enum
After r264564, we allowed direct-list-initialization of an enum from an
integral value in C++1z mode, so long as that value can convert to the
enum's underlying type.

In this kind of initialization, we need a lvalue-to-rvalue conversion
for the initializer value if it is not a rvalue. This lets us accept the
following code:

  enum class A : unsigned {};
  A foo(unsigned x) { return A{x}; }

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

llvm-svn: 295266
2017-02-16 01:20:00 +00:00
..
ARCMT [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
ASTMerge ASTImporter: fix tests on Windows with removing slashed parts of paths 2017-01-23 10:39:45 +00:00
Analysis [analyzer] Fix an assertion fail in CStringSyntaxChecker. 2017-02-02 08:20:54 +00:00
CXX [Sema] Add lvalue-to-rvalue cast in direct-list-initialization of enum 2017-02-16 01:20:00 +00:00
CodeCompletion [CodeCompletion] Code complete the '__auto_type' keyword 2017-02-13 23:35:59 +00:00
CodeGen [XRAY][MIPS] Add -fxray-instrument for mips/mipsel/mips64/mips64el 2017-02-15 10:41:38 +00:00
CodeGenCUDA [CodeGen] [CUDA] Add the ability set default attrs on functions in linked modules. 2017-01-25 21:29:48 +00:00
CodeGenCXX [dllimport] Check for dtor references in functions 2017-02-15 23:28:10 +00:00
CodeGenCoroutines [coroutines] Add allocation and deallocation substatements. 2016-10-27 16:28:31 +00:00
CodeGenObjC CodeGen: annotate ObjC ARC functions with ABI constraints 2017-02-11 21:34:18 +00:00
CodeGenObjCXX [CodeGen][ObjC] Use the type of the captured field of the enclosing 2017-02-14 06:46:55 +00:00
CodeGenOpenCL AMDGPU: Add a test checking alignments of emitted globals/allocas 2017-02-07 04:28:02 +00:00
Coverage Handle StaticAssertDecl in DeclContextPrinter 2017-01-03 12:16:02 +00:00
CoverageMapping [profiling] Update test cases to deal with name variable change (NFC) 2017-02-14 20:03:56 +00:00
Driver [XRAY][MIPS] Add -fxray-instrument for mips/mipsel/mips64/mips64el 2017-02-15 10:41:38 +00:00
FixIt [Sema] Improve the error diagnostic for dot destructor calls on pointer objects 2017-01-20 15:38:58 +00:00
Format clang-format: remove tests that assume no config file will be found as this is not always the case 2017-01-23 13:20:23 +00:00
Frontend Adjust tests after folding inlining analysis into missed remarks 2017-01-30 16:22:50 +00:00
Headers [OpenCL] Diagnose write_only image3d when extension is disabled 2017-01-25 12:18:50 +00:00
Import Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
Index [index] USR generation: use getTemplateArgs() instead of getTemplateInstantiationArgs() 2017-02-15 16:16:27 +00:00
Integration
Layout
Lexer [c++1z] Add some more tests for class template argument deduction, add 2017-02-14 00:55:25 +00:00
Misc PR31469: Don't add friend template class decls to redecl chain in dependent contexts. 2017-01-12 09:16:26 +00:00
Modules [Modules] Consider enable_if attrs in isSameEntity. 2017-02-15 22:43:27 +00:00
OpenMP [CodeGen] Treat auto-generated __dso_handle symbol as HiddenVisibility 2017-02-13 18:49:21 +00:00
PCH Serialize the UsesSEH bit on FunctionDecl 2017-01-10 21:27:03 +00:00
Parser PR24440: Do not silently discard a fold-expression appearing as the operand of a cast-expression. 2017-02-15 19:57:10 +00:00
Preprocessor Add a definition for __STRUCT_PARM_ALIGN__ for elfv2 and 64-bit darwin platforms to match what other compilers produce. 2017-02-15 07:50:11 +00:00
Profile [profiling] Update test cases to deal with name variable change (NFC) 2017-02-14 20:03:56 +00:00
Rewriter [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
Sema [VLA] Fix the test failure on msvc by specifying the triple. 2017-02-15 00:01:12 +00:00
SemaCUDA [CUDA] Let NVPTX inherit the host's calling conventions. 2017-01-05 16:53:38 +00:00
SemaCXX [c++1z] Diagnose non-deducible template parameters in deduction guide templates, per [temp.param]p11. 2017-02-16 00:36:47 +00:00
SemaObjC [Sema][ObjC] Don't pass a DeclRefExpr that doesn't reference a VarDecl 2017-02-01 20:22:26 +00:00
SemaObjCXX [Sema] Disallow returning a __block variable via a move. 2017-02-15 05:15:28 +00:00
SemaOpenCL [OpenCL] Accept logical NOT for pointer types in CL1.1 2017-02-07 16:09:41 +00:00
SemaTemplate Speculatively revert r295118 to see if it's what's causing the modules selfhost buildbots to fail. 2017-02-15 03:29:24 +00:00
TableGen
Tooling [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
Unit [test] Extend llvm_shlib_dir fix to unittests 2016-12-15 20:31:08 +00:00
VFS Don't diagnose non-modular includes when we are not compiling a module. 2016-08-26 17:16:46 +00:00
.clang-format
CMakeLists.txt Re-apply r292662, "IRGen: Start using the WriteThinLTOBitcode pass." 2017-01-26 23:51:50 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
lit.site.cfg.in [test] Port clang tests to canonicalized booleans 2017-01-25 13:11:45 +00:00
make_test_dirs.pl