1 // { dg-do assemble  }
2 
3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 3 Jun 1999 <nathan@acm.org>
5 
6 // We'd like the enum location to be its identifier.
7 
8 enum thing // { dg-message "" } previous def
9 {
10   val1
11 };
12 
13 enum thing // { dg-error "" } multiple def
14 {
15   val2
16 };
17