Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 22fb66e

Browse files
committedFeb 11, 2023
[clang][NFC] Add another example to CWG952 test
1 parent 89ba737 commit 22fb66e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎clang/test/CXX/drs/dr9xx.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ namespace dr948 { // dr948: 3.7
7373
}
7474

7575
namespace dr952 { // dr952: yes
76+
namespace example1 {
7677
struct A {
7778
typedef int I; // #dr952-typedef-decl
7879
};
@@ -98,6 +99,16 @@ struct C : B {
9899
}
99100
};
100101
};
102+
} // namespace example1
103+
namespace example2 {
104+
struct A {
105+
protected:
106+
static int x;
107+
};
108+
struct B : A {
109+
friend int get(B) { return x; }
110+
};
111+
} // namespace example2
101112
} // namespace dr952
102113

103114
namespace dr974 { // dr974: yes

0 commit comments

Comments
 (0)
Please sign in to comment.