summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/unknown1.C
blob: 935f8d4963da77ba67c8a844a1f77b8def2a4325 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }

void foo(void);
int foo(int);
template <typename T> void bar(T f); // { dg-message "note" }

void baz() {
  bar(foo); // { dg-error "<unresolved overloaded function type>" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 8 }
}