conv3.C: New test.
* g++.old-deja/g++.other/conv3.C: New test. conversion discards const From-SVN: r22995
This commit is contained in:
parent
9896d23c07
commit
7c7bfd9114
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
13
gcc/testsuite/g++.old-deja/g++.other/conv3.C
Normal file
13
gcc/testsuite/g++.old-deja/g++.other/conv3.C
Normal 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 *-*-*
|
||||
}
|
Loading…
Add table
Reference in a new issue