summaryrefslogtreecommitdiffstats
path: root/clang/test/Import/array-init-loop-expr/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Import/array-init-loop-expr/test.cpp')
-rw-r--r--clang/test/Import/array-init-loop-expr/test.cpp11
1 files changed, 11 insertions, 0 deletions
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;
+}
OpenPOWER on IntegriCloud