summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/enum-1.C
blob: 7681e9b521511df233d8dded9811a2289e0d827c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Verify that used enums are output.  */
/* { dg-do compile } */
/* { dg-final { scan-assembler "JTI_MAX" } } */

int var;

enum java_tree_index
{
  JTI_MAX
};

void function (void)
{
  var = JTI_MAX;
}