[cfe-commits] r157287 - /cfe/trunk/test/Parser/MicrosoftExtensions.cpp

John McCall rjmccall at apple.com
Tue May 22 14:28:07 PDT 2012


Author: rjmccall
Date: Tue May 22 16:28:07 2012
New Revision: 157287

URL: http://llvm.org/viewvc/llvm-project?rev=157287&view=rev
Log:
Fix line endings.

Modified:
    cfe/trunk/test/Parser/MicrosoftExtensions.cpp

Modified: cfe/trunk/test/Parser/MicrosoftExtensions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/MicrosoftExtensions.cpp?rev=157287&r1=157286&r2=157287&view=diff
==============================================================================
--- cfe/trunk/test/Parser/MicrosoftExtensions.cpp (original)
+++ cfe/trunk/test/Parser/MicrosoftExtensions.cpp Tue May 22 16:28:07 2012
@@ -297,28 +297,23 @@
   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();
+  };
 
-
-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();
-};
-
-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;
-}
-
-}
\ 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;
+  }
+}





More information about the cfe-commits mailing list