aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-10-11 19:36:47 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-10-11 19:36:47 +0000
commit7c7bfd91142be0173cfbbf8606e18c5c3275f2a9 (patch)
tree4ac7b638ca00ddb3cc7da211927e5073c1f6249a
parent9896d23c0797e7373707b7f0cbf0ec85d2585d72 (diff)
downloadgcc-7c7bfd91142be0173cfbbf8606e18c5c3275f2a9.zip
gcc-7c7bfd91142be0173cfbbf8606e18c5c3275f2a9.tar.gz
gcc-7c7bfd91142be0173cfbbf8606e18c5c3275f2a9.tar.bz2
conv3.C: New test.
* g++.old-deja/g++.other/conv3.C: New test. conversion discards const From-SVN: r22995
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/conv3.C13
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d877a3d..e43637e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,8 @@
1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.other/conv3.C: New test. conversion discards
+ const
+
* g++.old-deja/g++.other/pmf2.C: New test. invalid
pointer-to-member expression
diff --git a/gcc/testsuite/g++.old-deja/g++.other/conv3.C b/gcc/testsuite/g++.old-deja/g++.other/conv3.C
new file mode 100644
index 0000000..652f352
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/conv3.C
@@ -0,0 +1,13 @@
+// Build don't link:
+
+// submitted by David C Binderman <dcb@pncl.co.uk>
+
+typedef const int ci;
+typedef ci aci[ 10];
+aci var = { 2, 3, 5, 7, 11, 13 };
+
+void
+f()
+{
+ int * ip = var; // ERROR - requires const_cast - XFAIL *-*-*
+}