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
diagnostics: move output formats from diagnostic.{c,h} to their own files
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype9.C
blob
e16eef601870d339c44c70c997d9833820b40acc
1
// { dg-do compile }
2
// { dg-prune-output "mangled name" }
3
// Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
4
int i;
5
6
template <void (&FN)()>
7
struct g {
8
void foo(void) {
9
FN ();
10
}
11
};
12
13
void h ()
14
{
15
i = 7;
16
}
17
18
template struct g<h>;
19