aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/access10.C9
1 files changed, 9 insertions, 0 deletions
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 0000000..bca6ac3
--- /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);