* g++.old-deja/g++.other/conv3.C: New test. conversion discards
const
From-SVN: r22995
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
--- /dev/null
+// 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 *-*-*
+}