mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-02 00:43:44 +08:00
new
From-SVN: r32122
This commit is contained in:
parent
525bc95d4a
commit
2b4c135643
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…
Reference in New Issue
Block a user