mirror of
https://github.com/boostorg/config.git
synced 2025-08-01 21:34:28 +02:00
Update test case to make it a touch more strict.
[SVN r65517]
This commit is contained in:
@@ -13,15 +13,31 @@
|
|||||||
namespace boost_no_nested_friendship {
|
namespace boost_no_nested_friendship {
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
static int b;
|
public:
|
||||||
class B {
|
A() {}
|
||||||
int f() { return b; }
|
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()
|
int test()
|
||||||
{
|
{
|
||||||
return 0;
|
A a;
|
||||||
|
A::B b;
|
||||||
|
return b.f(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user