Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / obj-c++.dg / template-6.mm
blobc9b82c0c7abbc845af19b4e686c73c69bd1b3d56
1 // Test that extern template does not get emitted.
2 // Author: Matt Austern <austern@apple.com>
4 // { dg-do compile }
5 // { dg-options "" }
6 // { dg-final { scan-assembler-not ".globl __ZN3FooIiE5identEi" } }
8 template <typename X>
9   struct Foo { X ident(X x); };
11 template <typename X> 
12   X Foo<X>::ident(X x) { return x; }
14 extern template struct Foo<int>;
16 int abcde(Foo<int>& foo, int n) { return foo.ident(n); }