missing_template_keyword<int>();
}
+namespace access_protected_PTM {
+ class A {
+ protected:
+ void f(); // expected-note {{must name member using the type of the current context 'access_protected_PTM::B'}}
+ };
+ class B : public A{
+ public:
+ void test_access();
+ static void test_access_static();
+ };
-\r
-namespace access_protected_PTM {\r
-\r
-class A {\r
-protected:\r
- void f(); // expected-note {{must name member using the type of the current context 'access_protected_PTM::B'}}\r
-};\r
-\r
-class B : public A{\r
-public:\r
- void test_access();\r
- static void test_access_static();\r
-};\r
-\r
-void B::test_access() {\r
- &A::f; // expected-error {{'f' is a protected member of 'access_protected_PTM::A'}}\r
-}\r
-\r
-void B::test_access_static() {\r
- &A::f;\r
-}\r
-\r
-}
\ No newline at end of file
+ void B::test_access() {
+ &A::f; // expected-error {{'f' is a protected member of 'access_protected_PTM::A'}}
+ }
+
+ void B::test_access_static() {
+ &A::f;
+ }
+}