[clang] 87ae746 - [clang-repl] Add a test coverage for nested out-of-line dtor disambiguation.

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 02:39:56 PDT 2023


Author: Vassil Vassilev
Date: 2023-05-02T09:39:48Z
New Revision: 87ae74692456f5ef72dadff508af99371ddc1135

URL: https://github.com/llvm/llvm-project/commit/87ae74692456f5ef72dadff508af99371ddc1135
DIFF: https://github.com/llvm/llvm-project/commit/87ae74692456f5ef72dadff508af99371ddc1135.diff

LOG: [clang-repl] Add a test coverage for nested out-of-line dtor disambiguation.

This came up as a review comment in https://reviews.llvm.org/D148425

Added: 
    

Modified: 
    clang/test/Interpreter/disambiguate-decl-stmt.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Interpreter/disambiguate-decl-stmt.cpp b/clang/test/Interpreter/disambiguate-decl-stmt.cpp
index 8f8a2a91b0b35..6f97310475980 100644
--- a/clang/test/Interpreter/disambiguate-decl-stmt.cpp
+++ b/clang/test/Interpreter/disambiguate-decl-stmt.cpp
@@ -30,6 +30,9 @@ struct Dtor1 {~Dtor1();};
 Dtor1::~Dtor1() { printf("Dtor1\n"); }
 Dtor1 d1;
 
+struct ANestedDtor { struct A1 { struct A2 { ~A2(); }; }; };
+ANestedDtor::A1::A2::~A2() { printf("Dtor A::A1::A2::~A2\n"); }
+
 // Ctors
 
 // Deduction guide


        


More information about the cfe-commits mailing list