This revision was automatically updated to reflect the committed changes.
Closed by commit rL339831: [ASTImporter] Add test for ArrayInitLoopExpr 
(authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D50733?vs=160682&id=160934#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50733

Files:
  cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
  cfe/trunk/test/Import/array-init-loop-expr/test.cpp


Index: cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
===================================================================
--- cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
+++ cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
@@ -0,0 +1,3 @@
+class S {
+  int a[10];
+};
Index: cfe/trunk/test/Import/array-init-loop-expr/test.cpp
===================================================================
--- cfe/trunk/test/Import/array-init-loop-expr/test.cpp
+++ cfe/trunk/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;
+}


Index: cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
===================================================================
--- cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
+++ cfe/trunk/test/Import/array-init-loop-expr/Inputs/S.cpp
@@ -0,0 +1,3 @@
+class S {
+  int a[10];
+};
Index: cfe/trunk/test/Import/array-init-loop-expr/test.cpp
===================================================================
--- cfe/trunk/test/Import/array-init-loop-expr/test.cpp
+++ cfe/trunk/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;
+}
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D50733: [ASTImport... Raphael Isemann via Phabricator via cfe-commits
    • [PATCH] D50733: [ASTI... Raphael Isemann via Phabricator via cfe-commits

Reply via email to