OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/27177
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
nontype9.C
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