summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/except/except.spec/p15.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR16638, DR1552: the exception specification on an implicitly-declaredRichard Smith2014-02-071-8/+12
| | | | | | | | | | | 'operator delete' or 'operator delete[]' is an explicit exception specification. Therefore we should diagnose 'void operator delete(void*)' instead of 'void operator delete(void*) noexcept'. This diagnostic remains an ExtWarn, since in practice people don't always include the exception specification in such a declaration. llvm-svn: 201002
* Rework implementation of DR1492: Apply the resolution to operator delete too,Richard Smith2012-10-201-5/+9
| | | | | | | | | | | | since it also has an implicit exception specification. Downgrade the error to an extwarn, since at least for operator delete, system headers like to declare it as 'noexcept' whereas the implicit definition does not have an explicit exception specification. Move the exception specification for user-declared 'operator delete' functions from the type-as-written into the type, to reflect reality and to allow us to detect whether there was an implicit exception spec or not. llvm-svn: 166372
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Make deallocation functions implicitly noexcept in C++0x.Sebastian Redl2011-03-141-0/+24
llvm-svn: 127596
OpenPOWER on IntegriCloud