Update test case to make it a touch more strict.

[SVN r65517]
This commit is contained in:
John Maddock
2010-09-21 17:09:57 +00:00
parent 9edaeb4998
commit dca79a5e17

View File

@ -13,15 +13,31 @@
namespace boost_no_nested_friendship {
class A {
static int b;
class B {
int f() { return b; }
public:
A() {}
struct B {
int f(A& a)
{
a.f1();
a.f2(a);
return a.b;
}
};
private:
static int b;
static void f1(){}
template <class T>
static void f2(const T&){}
};
int A::b = 0;
int test()
{
return 0;
A a;
A::B b;
return b.f(a);
}
}