OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / inline1.C
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
10 struct X 
11 {
12   template <typename T> static void Foo (T)  {}
13 };
14
15 extern template void X::Foo<int> (int); // extern, so don't emit it
16
17 int main () {
18   X::Foo (1);  // ok, we've seen the defn
19 }
20