2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / addrfunc3.C
blob16d33186f9ab40c24eee6e1f6ede3ef61a32b4a2
1 // { dg-do run  }
2 // { dg-options "-fpermissive -w" }
3 // Test for overload resolution in comparison expressions.
4 // Contributed by Jason Merrill <jason@cygnus.com>.
6 void f (int) { }
7 void f ();
9 int main () {
10   void (*p)(int);
11   p = f;
12   if (p != f)
13     return 1;