aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template38.C
blob: 567dc20e4193f92cb5208fdf4158fcd340ff9d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Special g++ Options: -fansi-overloading

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;
}