Stephen Kelly | 765e1a4 | 2018-12-02 16:36:23 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s |
2 | |||||
3 | void testArrayInitExpr() | ||||
4 | { | ||||
5 | int a[10]; | ||||
6 | auto l = [a]{ | ||||
7 | }; | ||||
8 | // CHECK: |-ArrayInitLoopExpr 0x{{[^ ]*}} <col:15> 'int [10]' | ||||
Stephen Kelly | e8e4f09 | 2018-12-02 16:42:34 +0000 | [diff] [blame] | 9 | // CHECK: | `-ArrayInitIndexExpr 0x{{[^ ]*}} <<invalid sloc>> 'unsigned long' |
Stephen Kelly | 765e1a4 | 2018-12-02 16:36:23 +0000 | [diff] [blame] | 10 | } |