summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/addrfunc3.C
blob: 16d33186f9ab40c24eee6e1f6ede3ef61a32b4a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do run  }
// { dg-options "-fpermissive -w" }
// Test for overload resolution in comparison expressions.
// Contributed by Jason Merrill <jason@cygnus.com>.

void f (int) { }
void f ();

int main () {
  void (*p)(int);
  p = f;
  if (p != f)
    return 1;
}