2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / call1.C
blob3b6e367af22fdac7974221aebbd372feee77a174
1 //Origin: harinath@cs.umn.edu
2 //PR c++/10804
3 // G++ was not emiting the function foo.
5 // { dg-do run }
8 template<class T>
9 struct A
11   A() { const void (*a)() = foo; }
12   static const void foo() {}
14 int main(int argc, char *argv[])
16   A<int> a;