mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +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 {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user