Commit 7c7bfd91 by Alexandre Oliva Committed by Alexandre Oliva

conv3.C: New test.

	* g++.old-deja/g++.other/conv3.C: New test.  conversion discards
	const

From-SVN: r22995
parent 9896d23c
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
......
// 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 *-*-*
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment