| 1 | // RUN: %clang_delta --transformation=simple-inliner --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 | |
| 3 | // CHECK-NOT: template |
| 4 | template <typename T> |
| 5 | // CHECK-NOT: T bar |
| 6 | T bar(T a) { |
| 7 | return a; |
| 8 | } |
| 9 | void foo() { |
| 10 | int x = bar<int>(1); |
| 11 | } |
| 12 | |
| 13 | // CHECK: void foo() { |
| 14 | // CHECK: int [[VAR:.*]]; |
| 15 | // CHECK: int a = 1; |
| 16 | // CHECK: [[VAR]] = a; |
| 17 | // CHECK: int x = [[VAR]]; |
| 18 | // CHECK: } |