1// { dg-do compile }
2// { dg-options "-fno-default-inline -O0" }
3// { dg-final { scan-assembler-not "\n_?_ZN1X3FooIiEEvT_\[: \t\n\]" } }
4
5// Copyright (C) 2003 Free Software Foundation, Inc.
6// Contributed by Nathan Sidwell 27 Mar 2003 <nathan@codesourcery.com>
7
8// PR 10047. bogus warning.
9
10struct X
11{
12  template <typename T> static void Foo (T)  {}
13};
14
15extern template void X::Foo<int> (int); // extern, so don't emit it
16
17int main () {
18  X::Foo (1);  // ok, we've seen the defn
19}
20
21