13 lines · cpp
1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s2 3template <typename T> static int Foo(T t);4template <typename T>5int Foo(T t) {6 return t;7}8template<> int Foo<int>(int i) {9 return i;10}11 12// CHECK-NOT: define13 1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s2 3template <typename T> static int Foo(T t);4template <typename T>5int Foo(T t) {6 return t;7}8template<> int Foo<int>(int i) {9 return i;10}11 12// CHECK-NOT: define13