summaryrefslogtreecommitdiffstats
path: root/clang/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
commitde872af4371ac9fb1934fbbbcfab008087e7a2b7 (patch)
treebe033e433e9f7e2ac547571d9000cb17541a1da0 /clang/unittests/AST/DeclPrinterTest.cpp
parent4b11df0d0b9ca90c3afa16914cff2adacbf68e25 (diff)
downloadbcm5719-llvm-de872af4371ac9fb1934fbbbcfab008087e7a2b7.tar.gz
bcm5719-llvm-de872af4371ac9fb1934fbbbcfab008087e7a2b7.zip
In DeclPrint add printing of '= default'
in constructors. llvm-svn: 169440
Diffstat (limited to 'clang/unittests/AST/DeclPrinterTest.cpp')
-rw-r--r--clang/unittests/AST/DeclPrinterTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp
index 2cb3a3f748c..50aab032120 100644
--- a/clang/unittests/AST/DeclPrinterTest.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud