2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit82.C
blobe8423f82c5dd702945ef44ca4b96282303e82389
1 // { dg-do assemble  }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 7 Sep 2000 <nathan@codesourcery.com>
5 // Bug 508. We failed to set/clear lastiddecl appropriately for
6 // operator names.
8 struct A {};
10 template <typename N> void foo (A, int);
11 template <typename N> void operator<< (A, int);
13 int main()
14
15         A a;
16         operator<< <bool>(a, 0); 
17         foo <bool>(a, 0);