From: Mark Mitchell Date: Sat, 21 Apr 2001 00:04:08 +0000 (+0000) Subject: cp-tree.h (finish_enum): Change prototype. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7230e19e96550047e2ba3527886f047d20c8bdc0;p=gcc.git 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 --- 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; +}