Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / access10.C
blob103cd41085c0f43c3598a469a675dfe2b1a45bf5
1 // { dg-do assemble  }
2 // Test that defining a static member of private type with the () syntax works.
4 class A {
5   private:
6     struct B { B(int) {} };
7     static B b;
8 };
9 A::B A::b (1);