summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
new file mode 100755
index 0000000..35dc0b2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
@@ -0,0 +1,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 -
+}
+
+
+