1// Test that extern template does not get emitted. 2// Author: Matt Austern <austern@apple.com> 3 4// { dg-do compile } 5// { dg-options "" } 6// { dg-final { scan-assembler-not ".globl __ZN3FooIiE5identEi" } } 7 8template <typename X> 9struct Foo { 10 X ident(X x) { return x; } 11}; 12 13extern template struct Foo<int>; 14 15int abcde(Foo<int>& foo, int n) { 16 return foo.ident(n); 17} 18