Debian Codegraph @

clang_delta/tests/param-to-local/test1.cc

raw
1 // RUN: %clang_delta --transformation=param-to-local --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s
2
3 int foo(int x) {
4 int y = 1;
5 return x + y;
6 }
7
8 // CHECK: int foo(void) {
9 // CHECK: int x = 0;
10 // CHECK: int y = 1;
11 // CHECK: return x + y;
12 // CHECK: }