3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 26 Dec 2002 <nathan@codesourcery.com>
6 // PR 4803. Used inline functions must have a definition.
8 inline void Foo1 (); // { dg-warning "inline function" "" }
10 template <typename T> inline void Foo2(T); // { dg-warning "inline function" "" }
11 template <typename T> inline void Bar2(T);
22 inline void Bar1 () {}
23 template <typename T> inline void Bar2(T) {}