Add dump tests for ArrayInitLoopExpr and ArrayInitIndexExpr

llvm-svn: 348093
This commit is contained in:
Stephen Kelly 2018-12-02 16:36:23 +00:00
parent 687b92cd9c
commit 765e1a4472
1 changed files with 10 additions and 0 deletions

View File

@ -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'
}