FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp28.C
blob37e79c8cfef231907207180cf00002bb9a276f2c
1 extern "C" void abort();
3 int k;
5 template <class X>
6 struct S
8   template <class U>
9   void f(U u)
10   { ++k; g(u); }
12   template <class U>
13   void g(U u)
14   { ++k; }
16   int c[16];
19 int main()
21   S<char*> s;
22   s.f(3);
23   s.f("adf");
25   if (k != 4)
26     abort();