Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ38.C

raw
1 // PR c++/66596
2 // { dg-do compile { target c++14 } }
3
4 struct U { void f() {} };
5 struct V { void f() {} };
6 template<class T> U t;
7 template<> V t<int>;
8 template<class T> void g() { t<T>.f(); }
9 int main() { g<int>(); }