☰
Debian Codegraph
@
2.11.0~20240909-3
/
/
clang_delta
/
tests
/
param-to-local
/
test1.cc
☽
☼
clang_delta/tests/param-to-local/test1.cc
code
plain
raw
BSD-3-clause
C-Reduce is Copyright (c) 2011-2012 The University of Utah
debian/copyright
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: }