summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/enum2.C
blob: 40328bfc6b9cc9128d278e45cd245536ab217c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }

// 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 identifier.

enum thing // { dg-error "" } previous def
{
  val1
};

enum thing // { dg-error "" } multiple def
{
  val2
};