Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / template / non-dependent1.C
blob3fe5c33d7823d015ccbf80b74bd713d1f206b7cc
1 //PR c++/8222
2 // Origin: giovannibajo@libero.it and setzersn@gmx.de
4 // { dg-do run }
6 struct Foo
8     template <class>
9     void func() {}
11 template <class>
12 void Bar(Foo* p)
14     p->func<int>();
17 int main()
19     Foo c;
20     Bar<int>(&c);