OSDN Git Service

PR c++/9335
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / non-dependent1.C
1 //PR c++/8222
2 // Origin: giovannibajo@libero.it and setzersn@gmx.de
3
4 // { dg-do run }
5
6 struct Foo
7 {
8     template <class>
9     void func() {}
10 };
11 template <class>
12 void Bar(Foo* p)
13 {
14     p->func<int>();
15 }
16  
17 int main()
18 {
19     Foo c;
20     Bar<int>(&c);
21 }