OSDN Git Service

3f7028b642ffca10c9af95cf29942325110cda30
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / unify7.C
1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 1 Apr 2004 <nathan@codesourcery.com>
3
4 // PR c++/3518
5 template <typename T> void Foo (const T &);
6 template <typename T> void Baz (const T (*)());
7
8 int &f ();
9
10 int main()
11 {
12   Foo (f);
13   Baz (f); // { dg-error "no matching function" "" }
14 }