Debian Codegraph @

gcc/testsuite/g++.dg/template/nontype9.C

raw
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