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

int var;

enum java_tree_index
{
  JTI_MAX
};

template<int X>
void tmpl (void)
{
  var = JTI_MAX + X;
}
 
void
function (void)
{
  tmpl<2>();
}