@@ -51,6 +51,8 @@ template <int Indirections> void RunTest(StringRef Snippet) {
51
51
void constMethod() const;
52
52
void nonConstMethod();
53
53
54
+ static void staticMethod();
55
+
54
56
void operator()(ConstTag) const;
55
57
void operator()(NonConstTag);
56
58
@@ -109,10 +111,12 @@ TEST(ConstReferenceDeclRefExprsTest, ConstValueVar) {
109
111
useConstPtr(&/*const*/target);
110
112
useConstPtrConstRef(&/*const*/target);
111
113
/*const*/target.constMethod();
114
+ /*const*/target.staticMethod();
112
115
/*const*/target(ConstTag{});
113
116
/*const*/target[42];
114
117
useConstRef((/*const*/target));
115
118
(/*const*/target).constMethod();
119
+ /*const*/target.staticMethod();
116
120
(void)(/*const*/target == /*const*/target);
117
121
(void)/*const*/target;
118
122
(void)&/*const*/target;
@@ -140,6 +144,7 @@ TEST(ConstReferenceDeclRefExprsTest, ConstRefVar) {
140
144
useConstPtr(&/*const*/target);
141
145
useConstPtrConstRef(&/*const*/target);
142
146
/*const*/target.constMethod();
147
+ /*const*/target.staticMethod();
143
148
/*const*/target(ConstTag{});
144
149
/*const*/target[42];
145
150
useConstRef((/*const*/target));
@@ -179,6 +184,7 @@ TEST(ConstReferenceDeclRefExprsTest, ValueVar) {
179
184
useConstPtr(&/*const*/target);
180
185
useConstPtrConstRef(&/*const*/target);
181
186
/*const*/target.constMethod();
187
+ /*const*/target.staticMethod();
182
188
target.nonConstMethod();
183
189
/*const*/target(ConstTag{});
184
190
target[42];
@@ -218,6 +224,7 @@ TEST(ConstReferenceDeclRefExprsTest, RefVar) {
218
224
useConstPtr(&/*const*/target);
219
225
useConstPtrConstRef(&/*const*/target);
220
226
/*const*/target.constMethod();
227
+ /*const*/target.staticMethod();
221
228
target.nonConstMethod();
222
229
/*const*/target(ConstTag{});
223
230
target[42];
@@ -256,6 +263,7 @@ TEST(ConstReferenceDeclRefExprsTest, PtrVar) {
256
263
useConstPtrConstRef(/*const*/target);
257
264
usePtrConstPtr(&target);
258
265
/*const*/target->constMethod();
266
+ /*const*/target->staticMethod();
259
267
target->nonConstMethod();
260
268
(*/*const*/target)(ConstTag{});
261
269
(*target)[42];
@@ -292,6 +300,7 @@ TEST(ConstReferenceDeclRefExprsTest, ConstPtrVar) {
292
300
useConstPtrConstPtr(&/*const*/target);
293
301
useConstPtrConstRef(/*const*/target);
294
302
/*const*/target->constMethod();
303
+ /*const*/target->staticMethod();
295
304
(*/*const*/target)(ConstTag{});
296
305
(*/*const*/target)[42];
297
306
/*const*/target->operator[](42);
0 commit comments