☰
Debian Codegraph
@
2.11.0~20240909-3
/
/
clang_delta
/
tests
/
aggregate-to-scalar
/
test3.c
☽
☼
clang_delta/tests/aggregate-to-scalar/test3.c
code
plain
raw
symbols
SCIP
BSD-3-clause
C-Reduce is Copyright (c) 2011-2012 The University of Utah
debian/copyright
1
// RUN: %clang_delta --transformation=aggregate-to-scalar --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s
2
3
struct
S
{
4
int
a
[
2
];
5
};
6
7
int
foo
() {
8
struct
S
s = {
1
,
2
};
9
// CHECK: int s_0_0 = 1;
10
// CHECK: return s_0_0;
11
return
s.
a
[
0
];
12
}