diff options
-rw-r--r-- | lib/AST/TypePrinter.cpp | 3 | ||||
-rw-r--r-- | test/SemaCXX/ast-print.cpp | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index 2c00246301..4cf4b1847f 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -141,9 +141,6 @@ void TypePrinter::print(const Type *T, Qualifiers Quals, raw_ostream &OS, OS << "NULL TYPE"; return; } - - if (Policy.SuppressSpecifiers && T->isSpecifierType()) - return; SaveAndRestore<bool> PHVal(HasEmptyPlaceHolder, PlaceHolder.empty()); diff --git a/test/SemaCXX/ast-print.cpp b/test/SemaCXX/ast-print.cpp index 46b99e0d61..15fdabfe32 100644 --- a/test/SemaCXX/ast-print.cpp +++ b/test/SemaCXX/ast-print.cpp @@ -41,3 +41,8 @@ struct X { void *operator new (typeof(sizeof(1)), int = 2); }; void f2() { new X; } + +// CHECK: for (int i = 2097, j = 42; false;) +void forInit() { + for (int i = 2097, j = 42; false;) {} +} |