summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/14664-1.C
blob: 9a6e644433c478ad08e08c9d71a1e12c6572f1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// 981203 bkoz
// g++/14664 - test

char foo[26];

void bar()
{
  //-g++: incompatible types in assignment of 'const char[]' to 'char[]'
  //-edg: expression must be a modifiable lvalue
  foo = "0123456789012345678901234"; // { dg-error "" } // ERROR -
}