This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++] Patch c++/15049


===================================================================
> RCS file: gcc/testsuite/g++.dg/other/anon3.C
> diff -N gcc/testsuite/g++.dg/other/anon3.C
> *** /dev/null   1 Jan 1970 00:00:00 -0000
> --- gcc/testsuite/g++.dg/other/anon3.C  17 Sep 2004 16:49:01 -0000
> ***************
> *** 0 ****
> --- 1,7 ----
> + // pr c++/15049
> + // Origin: Matt Austern <austern@apple.com>
> + // Test that we can declare a global variable whose type is anonymous.
> +
> + // { dg-do compile }
> +
> + enum { a = 3 } x;
                 ^^^
this should be "x"?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]