summaryrefslogtreecommitdiffstats
path: root/clang/unittests
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
commit69c403c5c9e4d18ba79a36f04e107a228f0d2de7 (patch)
tree6f79a18122f02a73645d6d1a719f30a6e53edfaf /clang/unittests
parentc524ec4411503494c5f684a6caaf8003aa48d142 (diff)
downloadbcm5719-llvm-69c403c5c9e4d18ba79a36f04e107a228f0d2de7.tar.gz
bcm5719-llvm-69c403c5c9e4d18ba79a36f04e107a228f0d2de7.zip
In DeclPrint add printing of 'explicit'
constructors. llvm-svn: 169435
Diffstat (limited to 'clang/unittests')
-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 aeb49b01710..2cb3a3f748c 100644
--- a/clang/unittests/AST/DeclPrinterTest.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud