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

// submitted by David C Binderman <dcb@pncl.co.uk>

// According to [dcl.init]/9, this should be ill-formed

void
f()
{
  const int var [ 10 ]; // { dg-error "" } missing initializer 
}