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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype9.C
blob
f381240e30108ddfe046c19384a90818458b276c
1
// { dg-do compile }
2
// Contributed by: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3
int i;
4
5
template <void (&FN)()>
6
struct g {
7
void foo(void) {
8
FN ();
9
}
10
};
11
12
void h ()
13
{
14
i = 7;
15
}
16
17
template struct g<h>;
18