Debian Codegraph @

clang_delta/tests/simple-inliner/inline4.cc

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