brintos

brintos / llvm-project-archived public Read only

0
0
Text · 256 B · 02f9fc6 Raw
14 lines · cpp
1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s2// The template should compile to linkonce linkage, not weak linkage.3 4// CHECK-NOT: weak5template<class T>6void thefunc();7 8template<class T>9inline void thefunc() {}10 11void test() {12  thefunc<int>();13}14