| 1 | // RUN: %clang_delta --transformation=aggregate-to-scalar --counter=1 %s 2>&1 | %remove_lit_checks | FileCheck %s |
| 2 | |
| 3 | int a1[10]; |
| 4 | // CHECK: int a1_1; |
| 5 | |
| 6 | void foo() { |
| 7 | char a; |
| 8 | int t = 1; |
| 9 | // CHECK: ((char (*)[t]) a)[0][0] = 0; |
| 10 | ((char (*)[t]) a)[0][0] = 0; |
| 11 | // CHECK: a1_1 = 1; |
| 12 | a1[1] = 1; |
| 13 | } |