Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / unify7.C
blob23f61f3dcca578a42099537cbcbf3902e8625c2d
1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 1 Apr 2004 <nathan@codesourcery.com>
4 // PR c++/3518
5 template <typename T> void Foo (const T &);
6 template <typename T> void Baz (const T (*)()); // { dg-message "candidate" }
8 int &f ();
10 int main()
12   Foo (f);
13   Baz (f); // { dg-error "no matching function" "" }