aboutsummaryrefslogtreecommitdiff
path: root/unittests/AST/DeclPrinterTest.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-05 22:53:06 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-05 22:53:06 +0000
commitddb2968ba69e14bafec765401d70f2477bc977f6 (patch)
tree1083a0deac28e571f61295370355cdb6135acf6a /unittests/AST/DeclPrinterTest.cpp
parent9867ebaac9efe9346fcdc3bc816c85a7a25c6bf2 (diff)
In DeclPrint add printing of '= default'
in constructors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/AST/DeclPrinterTest.cpp')
-rw-r--r--unittests/AST/DeclPrinterTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/AST/DeclPrinterTest.cpp b/unittests/AST/DeclPrinterTest.cpp
index 2cb3a3f748..50aab03212 100644
--- a/unittests/AST/DeclPrinterTest.cpp
+++ b/unittests/AST/DeclPrinterTest.cpp
@@ -476,8 +476,8 @@ TEST(DeclPrinter, TestCXXConstructorDecl8) {
" A() = default;"
"};",
constructorDecl(ofClass(hasName("A"))).bind("id"),
- "A() noexcept"));
- // WRONG; Should be: "A() = default;"
+ "A() noexcept = default"));
+ // Should be: "A() = default;" if we care about noexcept as written
}
TEST(DeclPrinter, TestCXXConstructorDecl9) {