Debian Codegraph @

clang_delta/tests/simple-inliner/inline2.cc

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