forked from OSchip/llvm-project
Add dump tests for ArrayInitLoopExpr and ArrayInitIndexExpr
llvm-svn: 348093
This commit is contained in:
parent
687b92cd9c
commit
765e1a4472
|
@ -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'
|
||||
}
|
Loading…
Reference in New Issue