Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix pretty-printing pseudo-destructor calls. Patch by Grzegorz Jablon…

…ski.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166500 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
commit a7a38cb64e0781b8489332cedcfae9c8f95ba22e 1 parent 2e2d03c
Eli Friedman authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  lib/AST/StmtPrinter.cpp
  2. +4 −0 test/SemaCXX/ast-print.cpp
View
1  lib/AST/StmtPrinter.cpp
@@ -1467,6 +1467,7 @@ void StmtPrinter::VisitCXXPseudoDestructorExpr(CXXPseudoDestructorExpr *E) {
OS << '.';
if (E->getQualifier())
E->getQualifier()->print(OS, Policy);
+ OS << "~";
std::string TypeS;
if (IdentifierInfo *II = E->getDestroyedTypeIdentifier())
View
4 test/SemaCXX/ast-print.cpp
@@ -60,3 +60,7 @@ template <class S> void test7()
S s( 1,2 );
}
+
+// CHECK: t.~T();
+
+template <typename T> void test8(T t) { t.~T(); }
Please sign in to comment.
Something went wrong with that request. Please try again.