repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rs6000: Skip DWARF5 and -fcompare-debug testcases on AIX.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
enum-2.C
blob
554de37c40a2535e6fd22b7a27b00328c0c21e7c
1
/* Verify that used enums are output. */
2
/* { dg-do compile } */
3
/* { dg-options "-fno-eliminate-unused-debug-symbols" } */
4
/* { dg-final { scan-assembler "JTI_MAX" } } */
5
6
int var;
7
8
enum java_tree_index
9
{
10
JTI_MAX
11
};
12
13
template<int X>
14
void tmpl (void)
15
{
16
var = JTI_MAX + X;
17
}
18
19
void
20
function (void)
21
{
22
tmpl<2>();
23
}