new
authorJason Merrill <jason@gcc.gnu.org>
Wed, 23 Feb 2000 20:23:15 +0000 (15:23 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 23 Feb 2000 20:23:15 +0000 (15:23 -0500)
From-SVN: r32122

gcc/testsuite/g++.old-deja/g++.other/access10.C [new file with mode: 0644]

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 (file)
index 0000000..bca6ac3
--- /dev/null
@@ -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);