aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/ptrmem5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/other/ptrmem5.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/other/ptrmem5.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/other/ptrmem5.C b/gcc-4.9/gcc/testsuite/g++.dg/other/ptrmem5.C
new file mode 100644
index 000000000..75a78b2f1
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/other/ptrmem5.C
@@ -0,0 +1,12 @@
+// PR 14123
+
+struct a
+{
+ int x[8];
+};
+
+int main()
+{
+ int a::*n[8];
+ n = &a::x; // { dg-error "int \\(a::\\*\\)" }
+}