aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/ref2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/ref2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/ref2.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/ref2.C b/gcc/testsuite/g++.old-deja/g++.jason/ref2.C
new file mode 100644
index 00000000000..fe97990cd92
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/ref2.C
@@ -0,0 +1,6 @@
+// Bug: g++ can't deal with references to arrays.
+// Build don't link:
+
+typedef float Matrix[4][4];
+Matrix m;
+Matrix& f () { return m; }