Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / inline1.C
blobc5e39bb273874aa92220edea5472ff603701d55a
1 // { dg-do compile }
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.
10 struct X 
12   template <typename T> static void Foo (T)  {}
15 extern template void X::Foo<int> (int); // extern, so don't emit it
17 int main () {
18   X::Foo (1);  // ok, we've seen the defn