Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/explicit82.C

raw
1 // { dg-do assemble }
2 // Copyright (C) 2000 Free Software Foundation, Inc.
3 // Contributed by Nathan Sidwell 7 Sep 2000 <[email protected]>
4
5 // Bug 508. We failed to set/clear lastiddecl appropriately for
6 // operator names.
7
8 struct A {};
9
10 template <typename N> void foo (A, int);
11 template <typename N> void operator<< (A, int);
12
13 int main()
14 {
15 A a;
16 operator<< <bool>(a, 0);
17 foo <bool>(a, 0);
18 }