diff options
| author | Stephen Kelly <steveire@gmail.com> | 2018-12-02 16:36:23 +0000 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2018-12-02 16:36:23 +0000 |
| commit | 765e1a44728634cc02078b91828ee336b43ea71c (patch) | |
| tree | 4316b9e7e96cec82e15c600f518841e1470b72db /clang/test/AST/ast-dump-array.cpp | |
| parent | 687b92cd9cf58e3405b906c7accd13bbdb813793 (diff) | |
| download | bcm5719-llvm-765e1a44728634cc02078b91828ee336b43ea71c.tar.gz bcm5719-llvm-765e1a44728634cc02078b91828ee336b43ea71c.zip | |
Add dump tests for ArrayInitLoopExpr and ArrayInitIndexExpr
llvm-svn: 348093
Diffstat (limited to 'clang/test/AST/ast-dump-array.cpp')
| -rw-r--r-- | clang/test/AST/ast-dump-array.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/AST/ast-dump-array.cpp b/clang/test/AST/ast-dump-array.cpp new file mode 100644 index 00000000000..303b86b0d35 --- /dev/null +++ b/clang/test/AST/ast-dump-array.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s + +void testArrayInitExpr() +{ + int a[10]; + auto l = [a]{ + }; + // CHECK: |-ArrayInitLoopExpr 0x{{[^ ]*}} <col:15> 'int [10]' + // CHECK: | `-ArrayInitIndexExpr 0x{{[^ ]*}} <<invalid sloc>> 'unsigned long' +} |

