diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2018-08-15 22:52:21 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2018-08-15 22:52:21 +0000 |
| commit | e5715ff997944d3cfb3587c4c3dd418fc4cccde1 (patch) | |
| tree | a791c7f5505d8c980c3097428e5446c020d7a562 /clang/test/Import/array-init-loop-expr/test.cpp | |
| parent | 380e372b13a5f13119594fea6e862fd4f55ef1ea (diff) | |
| download | bcm5719-llvm-e5715ff997944d3cfb3587c4c3dd418fc4cccde1.tar.gz bcm5719-llvm-e5715ff997944d3cfb3587c4c3dd418fc4cccde1.zip | |
[ASTImporter] Add test for ArrayInitLoopExpr
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: martong, cfe-commits
Differential Revision: https://reviews.llvm.org/D50733
llvm-svn: 339831
Diffstat (limited to 'clang/test/Import/array-init-loop-expr/test.cpp')
| -rw-r--r-- | clang/test/Import/array-init-loop-expr/test.cpp | 11 |
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; +} |

