diff --git a/gcc/testsuite/g++.old-deja/g++.other/access10.C b/gcc/testsuite/g++.old-deja/g++.other/access10.C new file mode 100644 index 000000000000..bca6ac3642de --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/access10.C @@ -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);