diff options
-rw-r--r-- | clang/test/Import/array-init-loop-expr/Inputs/S.cpp | 3 | ||||
-rw-r--r-- | clang/test/Import/array-init-loop-expr/test.cpp | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Import/array-init-loop-expr/Inputs/S.cpp b/clang/test/Import/array-init-loop-expr/Inputs/S.cpp new file mode 100644 index 00000000000..bf80439834b --- /dev/null +++ b/clang/test/Import/array-init-loop-expr/Inputs/S.cpp @@ -0,0 +1,3 @@ +class S { + int a[10]; +}; diff --git a/clang/test/Import/array-init-loop-expr/test.cpp b/clang/test/Import/array-init-loop-expr/test.cpp new file mode 100644 index 00000000000..ac12ecc0361 --- /dev/null +++ b/clang/test/Import/array-init-loop-expr/test.cpp @@ -0,0 +1,11 @@ +// 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() { + S s; + S copy = s; +} |