conv3.C: New test.

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

From-SVN: r22995
This commit is contained in:
Alexandre Oliva 1998-10-11 19:36:47 +00:00 committed by Alexandre Oliva
parent 9896d23c07
commit 7c7bfd9114
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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 *-*-*
}