1// { dg-do assemble  }
2//
3// Copyright (C) 2000 Free Software Foundation, Inc.
4// Contributed by Nathan Sidwell 11 Aug 2000 <nathan@codesourcery.com>
5
6// bug 382. We ICE'd rather than decay to an address.
7
8struct A {
9template <class T> static void f(T) {}
10};
11void (*h)(int) = A::f<int>;
12void (*i)(int) = &A::f<int>;
13