[cfe-commits] r98322 - /cfe/trunk/test/CXX/class.access/class.friend/p1.cpp

John McCall rjmccall at apple.com
Thu Mar 11 17:20:21 PST 2010


Author: rjmccall
Date: Thu Mar 11 19:20:21 2010
New Revision: 98322

URL: http://llvm.org/viewvc/llvm-project?rev=98322&view=rev
Log:
Add an extra test to this test-case.


Modified:
    cfe/trunk/test/CXX/class.access/class.friend/p1.cpp

Modified: cfe/trunk/test/CXX/class.access/class.friend/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/class.access/class.friend/p1.cpp?rev=98322&r1=98321&r2=98322&view=diff
==============================================================================
--- cfe/trunk/test/CXX/class.access/class.friend/p1.cpp (original)
+++ cfe/trunk/test/CXX/class.access/class.friend/p1.cpp Thu Mar 11 19:20:21 2010
@@ -73,7 +73,7 @@
   void declared_test();
 
   class Class {
-    static void member(); // expected-note {{declared private here}}
+    static void member(); // expected-note 2 {{declared private here}}
 
     friend class ClassFriend;
     friend class UndeclaredClassFriend;
@@ -108,4 +108,10 @@
       Class::member();
     }
   };
+
+  class ClassNonFriend {
+    void test() {
+      Class::member(); // expected-error {{'member' is a private member of 'test0::Class'}}
+    }
+  };
 }





More information about the cfe-commits mailing list