aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-04-04 04:45:23 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-04-04 04:45:23 +0000
commit0c918ce59cdb3039f78d82bf848a311cac7cc5a3 (patch)
tree529dd0d4b3f60af20d59f63f73507583bf1e51cc /gcc/testsuite
parent19ec6a367c17e084d0a9165a1d2284eebb0fe311 (diff)
downloadgcc-0c918ce59cdb3039f78d82bf848a311cac7cc5a3.zip
gcc-0c918ce59cdb3039f78d82bf848a311cac7cc5a3.tar.gz
gcc-0c918ce59cdb3039f78d82bf848a311cac7cc5a3.tar.bz2
cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
* cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove. (OPERATOR_FORMAT): Likewise. (OPERATOR_TYPENAME_FORMAT): Likewise. * operators.def: Remove old name-mangling information. * decl.c (grok_op_properties): Adjust accordingly. * lex.c (init_operators): Likewise. * rtti.c (get_tinfo_decl): Issue error messages about types that have variable size. From-SVN: r41076
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/typeid1.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/typeid1.C b/gcc/testsuite/g++.old-deja/g++.other/typeid1.C
new file mode 100644
index 0000000..e50f3c2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/typeid1.C
@@ -0,0 +1,15 @@
+// Build don't link:
+// Origin: sk@gluit.de
+// Special g++ Options:
+
+#include <typeinfo>
+
+int main ()
+{
+ typeid(char*);
+
+ int len = 1;
+ char carr[len];
+ typeid(typeof(carr)); // ERROR - type has variable size
+ typeid(carr); // ERROR - type has variable size
+}