summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/throw-expressions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update Clang tests to handle explicitly typed load changes in LLVM.David Blaikie2015-02-271-2/+2
| | | | llvm-svn: 230795
* Mark C++ reference parameters as dereferenceableHal Finkel2014-07-181-1/+1
| | | | | | | | | | | | | | Because references must be initialized using some evaluated expression, they must point to something, and a callee can assume the reference parameter is dereferenceable. Taking advantage of a new attribute just added to LLVM, mark them as such. Because dereferenceability in addrspace(0) implies nonnull in the backend, we don't need both attributes. However, we need to know the size of the object to use the dereferenceable attribute, so for incomplete types we still emit only nonnull. llvm-svn: 213386
* Don't crash when emitting a glvalue conditional where one arm is aRichard Smith2014-06-201-0/+32
| | | | | | throw-expression. Based on a patch by Marius Wachtler! llvm-svn: 211388
* PR17052 / DR1560 (+DR1550): In a conditional expression between a glvalue and aRichard Smith2014-01-271-0/+13
| | | | | | | throw-expression, the result is also a glvalue and isn't unnecessarily coerced to a prvalue. llvm-svn: 200189
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-2/+2
| | | | | | tests fail. llvm-svn: 188447
* Allow paren casted throw statements inside of ternary expressionsDavid Majnemer2013-06-021-0/+24
| | | | | | | | | | | | | | clang would incorrectly not allow the following: int x = true ? (throw 1) : 2; The problem exists because we don't see beyond the parens. This, in turn, causes us to believe that we are choosing between void and int which we diagnose as an error. Instead, allow clang to see the 'throw' inside the parens. llvm-svn: 183085
* Add missing triple to unit test.Richard Smith2013-05-081-2/+1
| | | | llvm-svn: 181465
* Don't crash in IRGen if a conditional with 'throw' in one of its branches isRichard Smith2013-05-071-1/+26
| | | | | | used as a branch condition. llvm-svn: 181368
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Handle an edge case involving the conditional operator and throw ↵Eli Friedman2011-10-151-0/+5
| | | | | | expressions. PR10582. llvm-svn: 142047
* Add -fcxx-exceptions to all tests that use C++ exceptions.Anders Carlsson2011-02-281-1/+1
| | | | llvm-svn: 126599
* Pass -fexceptions to all tests that use try/catch/throw.Anders Carlsson2011-02-191-1/+1
| | | | llvm-svn: 126037
* Don't assert on attempts to throw 'bool'. I wonder if in the history of C++John McCall2010-10-291-0/+5
| | | | | | anyone has ever intentionally done this outside of a compiler test case. llvm-svn: 117645
* Insulate these from changes to the default for -Wunreachable-code.Mike Stump2010-01-231-1/+1
| | | | llvm-svn: 94326
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-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
* Correctly handle conditional operators involving throw.Eli Friedman2009-12-071-0/+10
llvm-svn: 90800
OpenPOWER on IntegriCloud