8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/enum2.C
Nathan Sidwell 8e64077dd3 * g++.old-deja/g++.other/enum2.C: New test.
From-SVN: r28472
1999-08-03 14:25:10 +00:00

17 lines
286 B
C

// Build don't link:
// Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 3 Jun 1999 <nathan@acm.org>
// We'd like the enum location to be its open brace.
enum thing
{ // ERROR - previous def
val1
};
enum thing
{ // ERROR - multiple def
val2
};