Files
clang-p2996/clang/test/Import/array-init-loop-expr/test.cpp
David Blaikie f9ad1d1c77 Revert "Compress formatting of array type names (int [4] -> int[4])"
Looks like lldb has some issues with this - somehow it causes lldb to
treat a "char[N]" type as an array of chars (prints them out
individually) but a "char [N]" is printed as a string. (even though the
DWARF doesn't have this string in it - it's something to do with the
string lldb generates for itself using clang)

This reverts commit 277623f4d5.
2021-10-14 14:49:25 -07:00

11 lines
232 B
C++

// RUN: clang-import-test -dump-ast -import %S/Inputs/S.cpp -expression %s | FileCheck %s
// CHECK: CXXCtorInitializer
// CHECK-NEXT: ArrayInitLoopExpr
// CHECK-SAME: 'int [10]'
// CHECK: ArrayInitIndexExpr
void expr() {
f();
}