Skip to content

Commit

Permalink
[clang][NFC] Fix CWG399 test
Browse files Browse the repository at this point in the history
A follow-up commit for https://reviews.llvm.org/D147920 that fixes embarrasing copy-and-paste mistake.
  • Loading branch information
Endilll committed May 20, 2023
1 parent 89ca4eb commit abbb22c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/test/CXX/drs/dr3xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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>
Expand Down

0 comments on commit abbb22c

Please sign in to comment.