Author: rjmccall
Date: Wed Apr 28 20:20:45 2010
New Revision: 102580
URL: http://llvm.org/viewvc/llvm-project?rev=102580&view=rev
Log:
Test case for r102578.
Modified:
cfe/trunk/test/CXX/class.access/p6.cpp
Modified: cfe/trunk/test/CXX/class.access/p6.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/class.access/p6.cpp?rev=102580&r1=102579&r2=102580&view=diff
==============================================================================
--- cfe/trunk/test/CXX/class.access/p6.cpp (original)
+++ cfe/trunk/test/CXX/class.access/p6.cpp Wed Apr 28 20:20:45 2010
@@ -105,3 +105,17 @@
Outer::A<B, Blue>::foo(); // expected-error {{no member named 'foo'}}
}
}
+
+namespace test4 {
+ template <class T> class A {
+ private: typedef int type;
+ template <class U> friend void foo(U &, typename U::type);
+ };
+
+ template <class U> void foo(U &, typename U::type) {}
+
+ void test() {
+ A<int> a;
+ foo(a, 0);
+ }
+}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits