blob: bfea13534a5d5caeb30627041682b5825d377f31 [file] [log] [blame]
Stephen Kelly765e1a42018-12-02 16:36:23 +00001// RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s
2
3void testArrayInitExpr()
4{
5 int a[10];
6 auto l = [a]{
7 };
8 // CHECK: |-ArrayInitLoopExpr 0x{{[^ ]*}} <col:15> 'int [10]'
Stephen Kellye8e4f092018-12-02 16:42:34 +00009 // CHECK: | `-ArrayInitIndexExpr 0x{{[^ ]*}} <<invalid sloc>> 'unsigned long'
Stephen Kelly765e1a42018-12-02 16:36:23 +000010}
Stephen Kelly0fa7bf02018-12-04 09:53:36 +000011
12template<typename T, int Size>
13class array {
14 T data[Size];
15
16 using array_T_size = T[Size];
17 // CHECK: `-DependentSizedArrayType 0x{{[^ ]*}} 'T [Size]' dependent <col:25, col:30>
18};
19