aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2001-04-21 00:04:08 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-04-21 00:04:08 +0000
commit7230e19e96550047e2ba3527886f047d20c8bdc0 (patch)
treed61be95bb950ae1d8c6e18210719e3627d4599fa
parent3c0ce750cb50921dee27d1399bd14a10145f7538 (diff)
downloadgcc-7230e19e96550047e2ba3527886f047d20c8bdc0.zip
gcc-7230e19e96550047e2ba3527886f047d20c8bdc0.tar.gz
gcc-7230e19e96550047e2ba3527886f047d20c8bdc0.tar.bz2
cp-tree.h (finish_enum): Change prototype.
* cp-tree.h (finish_enum): Change prototype. * decl.c (finish_enum): Reorganize. * parse.y (structsp): Adjust calls to finish_enum. [[Split portion of a mixed commit.]] From-SVN: r41473.2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/enum4.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/enum4.C b/gcc/testsuite/g++.old-deja/g++.other/enum4.C
new file mode 100644
index 0000000..f401613
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/enum4.C
@@ -0,0 +1,13 @@
+// Origin: Mark Mitchell <mark@codesourcery.com>
+// Special g++ Options: -fshort-enums
+
+enum E {
+ a = -312
+};
+
+E e = a;
+
+int main () {
+ if ((int) e != -312)
+ return 1;
+}