PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / obj-c++.dg / template-5.mm
blob79ed57d157ecc4d0b4d3833517e995f5c545729d
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 {
10   X ident(X x) { return x; }
13 extern template struct Foo<int>;
15 int abcde(Foo<int>& foo, int n) {
16   return foo.ident(n);