// Test that extern template does not get emitted. // Author: Matt Austern // { dg-do compile } // { dg-options "" } // { dg-final { scan-assembler-not ".globl __ZN3FooIiE5identEi" } } template struct Foo { X ident(X x); }; template X Foo::ident(X x) { return x; } extern template struct Foo; int abcde(Foo& foo, int n) { return foo.ident(n); }