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