summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template38.C
blob: 3870cbc5c140728e16c54fb51e58a472e824b54c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Special g++ Options: -fguiding-decls

struct A {
  friend int operator== (const A&, const A&);
  A (int) { }
};

template <class T> int
operator== (const T&, const T&)
{
  return 0;
}

main ()
{
  A a (1);
  return a == 1;
}