[clang] abbb22c - [clang][NFC] Fix CWG399 test

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sat May 20 02:56:58 PDT 2023


Author: Vlad Serebrennikov
Date: 2023-05-20T12:56:52+03:00
New Revision: abbb22cc0c9c33dedb8d53c2bd3e703f92baace7

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

LOG: [clang][NFC] Fix CWG399 test

A follow-up commit for https://reviews.llvm.org/D147920 that fixes embarrasing copy-and-paste mistake.

Added: 
    

Modified: 
    clang/test/CXX/drs/dr3xx.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CXX/drs/dr3xx.cpp b/clang/test/CXX/drs/dr3xx.cpp
index f1b1941fbddf..75b50d9ee065 100644
--- a/clang/test/CXX/drs/dr3xx.cpp
+++ b/clang/test/CXX/drs/dr3xx.cpp
@@ -1438,7 +1438,7 @@ namespace dr398 { // dr398: yes
 
 namespace dr399 { // dr399: 11
                   // NB: reuse dr244 test 
-  struct B {}; // expected-note {{type 'dr244::B' found by destructor name lookup}}
+  struct B {}; // expected-note {{type 'dr399::B' found by destructor name lookup}}
   struct D : B {};
 
   D D_object;
@@ -1453,8 +1453,8 @@ namespace dr399 { // dr399: 11
     B_ptr->~B_alias();
     B_ptr->B_alias::~B();
     B_ptr->B_alias::~B_alias();
-    B_ptr->dr244::~B(); // expected-error {{refers to a member in namespace}}
-    B_ptr->dr244::~B_alias(); // expected-error {{refers to a member in namespace}}
+    B_ptr->dr399::~B(); // expected-error {{refers to a member in namespace}}
+    B_ptr->dr399::~B_alias(); // expected-error {{refers to a member in namespace}}
   }
 
   template<typename T, typename U>


        


More information about the cfe-commits mailing list