void c1(int *a) {}\r
}\r
\r
+class C {\r
+ static void c2(int *a) {} // expected-note {{implicitly declared private here}} expected-note {{implicitly declared private here}}\r
+};\r
+\r
void t1() {\r
int v1 __attribute__((cleanup(N::c1)));\r
int v2 __attribute__((cleanup(N::c2))); // expected-error {{no member named 'c2' in namespace 'N'}}\r
+ int v3 __attribute__((cleanup(C::c2))); // expected-error {{'c2' is a private member of 'C'}}\r
}\r
+\r
+class D : public C {\r
+ void t2() {\r
+ int v1 __attribute__((cleanup(c2))); // expected-error {{'c2' is a private member of 'C'}}\r
+ }\r
+};\r