aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/static-assert.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-06-05Move a test from static-assert.cpp to DeclPrinterTestDavid Majnemer1-9/+0
It's better not to rely on the diagnostics engine to pretty print the argument to decltype. Instead, exercise the functionality in DeclPrinterTest. llvm-svn: 239197
2015-06-05[AST] There is no message for C++1z-style static_assertDavid Majnemer1-0/+9
We would crash in the DeclPrinter trying to pretty-print the static_assert message. C++1z-style assertions don't have a message so we would crash. This fixes PR23756. llvm-svn: 239170
2014-06-20Fix typo in r211394.Richard Smith1-1/+1
llvm-svn: 211395
2014-06-20[C++1z] Implement N3928: message in static_assert is optional.Richard Smith1-0/+3
llvm-svn: 211394
2012-07-11Stop instantiating a class if we hit a static_assert failure. Also, if theRichard Smith1-0/+14
static_assert fails when parsing the template, don't diagnose it again on every instantiation. llvm-svn: 160088
2012-04-05Add triples to these tests to keep them working on Windows,Richard Smith1-1/+1
where wchar_t is only 16 bits wide. llvm-svn: 154072
2012-04-05Fix assertions and wrong output from StmtPrinter's string literal printing.Richard Smith1-0/+7
String literals (including unicode ones) can contain non-Unicode codepoints if they were written using \x or similar. Write those out using \x, but be careful that the following character can't be misinterpreted as part of the \x escape sequence. Convert UTF-16 surrogate pairs back to codepoints before rendering them. llvm-svn: 154069
2011-12-14Produce more detailed diagnostics when static_assert condition is not an ICE.Richard Smith1-3/+2
llvm-svn: 146607
2011-10-13Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith1-1/+1
-std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
2010-03-10When pretty-printing tag types, only print the tag if we're in C (andJohn McCall1-2/+2
therefore not creating ElaboratedTypes, which are still pretty-printed with the written tag). Most of these testcase changes were done by script, so don't feel too sorry for my fingers. llvm-svn: 98149
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar1-1/+1
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
2009-03-24Rename clang to clang-cc.Daniel Dunbar1-1/+1
Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
2009-03-15Handle static_asserts when instantiating structs.Anders Carlsson1-2/+8
llvm-svn: 67031
2009-03-14Handle dependent types/exprs in static_assert expressions.Anders Carlsson1-0/+9
llvm-svn: 66997
2009-03-14More static_assert work. Check that the assert expr is valid and show an ↵Anders Carlsson1-0/+15
error if it's false. Create the declaration and add it to the current context. llvm-svn: 66995