From 7230e19e96550047e2ba3527886f047d20c8bdc0 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sat, 21 Apr 2001 00:04:08 +0000 Subject: [PATCH] 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 --- gcc/testsuite/g++.old-deja/g++.other/enum4.C | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/enum4.C 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 00000000000..f401613df3a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/enum4.C @@ -0,0 +1,13 @@ +// Origin: Mark Mitchell +// Special g++ Options: -fshort-enums + +enum E { + a = -312 +}; + +E e = a; + +int main () { + if ((int) e != -312) + return 1; +} -- 2.30.2