aboutsummaryrefslogtreecommitdiff
path: root/unittests/AST/DeclPrinterTest.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-05 22:19:06 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-05 22:19:06 +0000
commit65bcdabba34fddc303ab97f60dfea6079989306a (patch)
tree173c25e2dd1bbfb190a253f8d25409190d546f7a /unittests/AST/DeclPrinterTest.cpp
parentca952281611205fbc36d0516a595f9751e071d36 (diff)
In DeclPrint add printing of 'explicit'
constructors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/AST/DeclPrinterTest.cpp')
-rw-r--r--unittests/AST/DeclPrinterTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittests/AST/DeclPrinterTest.cpp b/unittests/AST/DeclPrinterTest.cpp
index aeb49b0171..2cb3a3f748 100644
--- a/unittests/AST/DeclPrinterTest.cpp
+++ b/unittests/AST/DeclPrinterTest.cpp
@@ -457,8 +457,7 @@ TEST(DeclPrinter, TestCXXConstructorDecl6) {
" explicit A(int a);"
"};",
constructorDecl(ofClass(hasName("A"))).bind("id"),
- "A(int a)"));
- // WRONG; Should be: "explicit A(int a);"
+ "explicit A(int a)"));
}
TEST(DeclPrinter, TestCXXConstructorDecl7) {