Debian Codegraph @

clang_delta/tests/reduce-pointer-level/init-list.c

raw symbols SCIP
1 // RUN: %clang_delta --transformation=reduce-pointer-level --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s
2
3 struct S {
4 int f1;
5 } g;
6
7 void foo() {
8 struct S *s = ({
9 1 + 2; &g;
10 });
11 }
12
13 // CHECK: struct S {
14 // CHECK: int f1;
15 // CHECK: } g;
16 // CHECK: void foo() {
17 // CHECK: struct S s{{ *}};
18 // CHECK: }
19