Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / conv3.C
blob383932d8c54a259be83667a5a82c5d8439f58199
1 // { dg-do assemble  }
3 // submitted by David C Binderman <dcb@pncl.co.uk>
5 typedef const int ci;
6 typedef ci aci[ 10];
7 aci var = { 2, 3, 5, 7, 11, 13 };
9 void
10 f()
12         int * ip = var; // { dg-error "" } requires const_cast