Debian Codegraph @

gcc/testsuite/g++.dg/template/local-var1.C

raw
1 // PR c++/97186, related to c++/97171 but with a variable
2 // { dg-do compile { target c++11 } }
3
4 namespace
5 {
6 template <typename WF>
7 void
8 ml ()
9 {
10 extern WF cr;
11
12 static_assert (sizeof (cr) == 12, "");
13 }
14
15 void
16 qc ()
17 {
18 ml<int[3]> ();
19 }
20 }