aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
blob: 35dc0b2f6add14217d09353942168443478b0957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 981203 bkoz
// g++/14664 + test
// Build don't link: 
// Special g++ Options: -fno-const-strings

char foo[26];

void bar()
{
  // the addition of the flag "-fno-const-string-literal" reverts to pre-ISO.
  // -g++: ANSI C++ forbids assignment of arrays
  foo = "0123456789012345678901234"; // WARNING -
}