new
From-SVN: r32122
This commit is contained in:
parent
525bc95d4a
commit
2b4c135643
1 changed files with 9 additions and 0 deletions
9
gcc/testsuite/g++.old-deja/g++.other/access10.C
Normal file
9
gcc/testsuite/g++.old-deja/g++.other/access10.C
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Test that defining a static member of private type with the () syntax works.
|
||||
// Build don't link:
|
||||
|
||||
class A {
|
||||
private:
|
||||
struct B { B(int) {} };
|
||||
static B b;
|
||||
};
|
||||
A::B A::b (1);
|
Loading…
Add table
Reference in a new issue