summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/DeclPrinterTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-12-11 01:14:52 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-12-11 01:14:52 +0000
commitbd3051272ce123eb34b2253739404c93bec52d1e (patch)
tree5879011b6c9034a97447c75f41c3fd27f84df741 /clang/unittests/AST/DeclPrinterTest.cpp
parentd4c0c6cb2232c92f1259c2cb9e233fca9885078a (diff)
downloadbcm5719-llvm-bd3051272ce123eb34b2253739404c93bec52d1e.tar.gz
bcm5719-llvm-bd3051272ce123eb34b2253739404c93bec52d1e.zip
PR14558: Compute triviality of special members (etc) at the end of the class
definition, rather than at the end of the definition of the set of nested classes. We still defer checking of the user-specified exception specification to the end of the nesting -- we can't check that until we've parsed the in-class initializers for non-static data members. llvm-svn: 169805
Diffstat (limited to 'clang/unittests/AST/DeclPrinterTest.cpp')
-rw-r--r--clang/unittests/AST/DeclPrinterTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp
index 50aab032120..844b9a49e13 100644
--- a/clang/unittests/AST/DeclPrinterTest.cpp
+++ b/clang/unittests/AST/DeclPrinterTest.cpp
@@ -476,8 +476,7 @@ TEST(DeclPrinter, TestCXXConstructorDecl8) {
" A() = default;"
"};",
constructorDecl(ofClass(hasName("A"))).bind("id"),
- "A() noexcept = default"));
- // Should be: "A() = default;" if we care about noexcept as written
+ "A() = default"));
}
TEST(DeclPrinter, TestCXXConstructorDecl9) {
OpenPOWER on IntegriCloud