2 // { dg-options "-fno-default-inline -O0" }
3 // { dg-final { scan-assembler-not _ZN1X3FooIiEEvT_: } }
5 // Copyright (C) 2003 Free Software Foundation, Inc.
6 // Contributed by Nathan Sidwell 27 Mar 2003 <nathan@codesourcery.com>
8 // PR 10047. bogus warning.
12 template <typename T> static void Foo (T) {}
15 extern template void X::Foo<int> (int); // extern, so don't emit it
18 X::Foo (1); // ok, we've seen the defn