Skip to content

Commit 2323b54

Browse files
committed
[clang][NFC] Bring back missing lines from DR52 test
A follow-up for bf2e05c
1 parent 453bd04 commit 2323b54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/CXX/drs/dr0xx.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ namespace dr51 { // dr51: 2.8
714714
}
715715

716716
namespace dr52 { // dr52: 2.8
717+
struct A { int n; }; // expected-note {{here}}
718+
struct B : private A {} b; // expected-note 2{{private}}
717719
// FIXME: This first diagnostic is very strangely worded, and seems to be bogus.
718720
int k = b.A::n; // expected-error {{'A' is a private member of 'dr52::A'}}
719721
// expected-error@-1 {{cannot cast 'struct B' to its private base}}

0 commit comments

Comments
 (0)