Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ext/addrfunc3.C

raw
1 // { dg-do run }
2 // { dg-options "-fpermissive -w" }
3 // Test for overload resolution in comparison expressions.
4 // Contributed by Jason Merrill <[email protected]>.
5
6 void f (int) { }
7 void f ();
8
9 int main () {
10 void (*p)(int);
11 p = f;
12 if (p != f)
13 return 1;
14 }