[clang] [clang][NFC] Refactor expected directives in C++ DRs 1-99 (PR #73879)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 29 16:48:02 PST 2023
================
@@ -80,14 +86,21 @@ namespace dr5 { // dr5: 3.1
namespace dr7 { // dr7: 3.4
class A { public: ~A(); };
- class B : virtual private A {}; // expected-note 2 {{declared private here}}
- class C : public B {} c; // expected-error 2 {{inherited virtual base class 'A' has private destructor}} \
- // expected-note {{implicit default constructor for 'dr7::C' first required here}} \
- // expected-note {{implicit destructor for 'dr7::C' first required here}}
+ class B : virtual private A {}; // #dr7-B
+ class C : public B {} c; // #dr7-C
+ // expected-error@#dr7-C {{inherited virtual base class 'A' has private destructor}}
+ // expected-note@#dr7-C {{in implicit default constructor for 'dr7::C' first required here}}
+ // expected-note@#dr7-B {{declared private here}}
----------------
shafik wrote:
I have to say, it is kind of messing with me that we have `-C` before `-B` but I then realized that `B` and `C` are the class names here and don't imply some sort of ordering.
I wanted to point that out in case others also felt that way.
https://github.com/llvm/llvm-project/pull/73879
More information about the cfe-commits
mailing list