📄 template-5.mm
字号:
// Test that extern template does not get emitted.// Author: Matt Austern <austern@apple.com>// { dg-do compile }// { dg-options "" }// { dg-final { scan-assembler-not ".globl __ZN3FooIiE5identEi" } }template <typename X>struct Foo { X ident(X x) { return x; }};extern template struct Foo<int>;int abcde(Foo<int>& foo, int n) { return foo.ident(n);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -