summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/conv3.C
blob: 383932d8c54a259be83667a5a82c5d8439f58199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }

// 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;	// { dg-error "" } requires const_cast
}